19#ifndef itkNumericTraitsStdVector_h
20#define itkNumericTraitsStdVector_h
68 using Self = std::vector<T>;
71 using AbsType = std::vector<ElementAbsType>;
117 Self b(a.Size(), T{});
135 static constexpr bool IsSigned = std::is_signed_v<ValueType>;
136 static constexpr bool IsInteger = std::is_integral_v<ValueType>;
163 template <
typename TArray>
167 for (
unsigned int i = 0; i <
GetLength(v); ++i)
static void AssignToArray(const Self &v, TArray &mv)
std::vector< ElementPrintType > PrintType
Self MeasurementVectorType
static const Self max(const Self &a)
static constexpr bool IsComplex
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
std::vector< ElementAccumulateType > AccumulateType
static const Self ZeroValue(const Self &a)
static const Self NonpositiveMin(const Self &a)
typename NumericTraits< T >::RealType ElementRealType
std::vector< ElementRealType > RealType
typename NumericTraits< T >::AbsType ElementAbsType
static unsigned int GetLength(const std::vector< T > &m)
std::vector< ElementFloatType > FloatType
static constexpr bool IsInteger
typename NumericTraits< T >::PrintType ElementPrintType
static constexpr bool IsSigned
static const Self OneValue(const Self &a)
ElementRealType ScalarRealType
typename NumericTraits< T >::AccumulateType ElementAccumulateType
typename NumericTraits< T >::FloatType ElementFloatType
static void SetLength(std::vector< T > &m, const unsigned int s)
static const Self min(const Self &a)
std::vector< ElementAbsType > AbsType
Define additional traits for native types such as int or float.
static constexpr T NonpositiveMin()
static constexpr T max(const T &)
static constexpr T min(const T &)
static unsigned int GetLength()
static constexpr bool IsComplex
TInput TInput TReturn CastWithRangeCheck(TInput x)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....