19 #ifndef itkNumericTraitsStdVector_h
20 #define itkNumericTraitsStdVector_h
55 template<
typename T >
69 using Self = std::vector< T >;
72 using AbsType = std::vector< ElementAbsType >;
87 using RealType = std::vector< ElementRealType >;
136 static void SetLength(std::vector< T > & m,
const unsigned int s)
146 static unsigned int GetLength(
const std::vector< T > & m)
148 return itk::Math::CastWithRangeCheck<unsigned int>( m.size() );
156 template<
typename TArray>
159 for(
unsigned int i=0; i<GetLength(v); i++ )
168 #endif // itkNumericTraitsStdVector_h
static const Self OneValue(const Self &a)
std::vector< ElementAbsType > AbsType
std::vector< ElementFloatType > FloatType
std::vector< ElementAccumulateType > AccumulateType
Define numeric traits for std::vector.
static void SetLength(std::vector< T > &m, const unsigned int s)
typename NumericTraits< T >::FloatType ElementFloatType
std::vector< ElementPrintType > PrintType
typename NumericTraits< T >::AbsType ElementAbsType
static const Self max(const Self &a)
static const Self min(const Self &a)
static unsigned int GetLength(const std::vector< T > &m)
typename NumericTraits< T >::PrintType ElementPrintType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self ZeroValue(const Self &a)
typename NumericTraits< T >::RealType ElementRealType
ElementRealType ScalarRealType
Self MeasurementVectorType
static const Self NonpositiveMin(const Self &a)
std::vector< ElementRealType > RealType
static void AssignToArray(const Self &v, TArray &mv)
typename NumericTraits< T >::AccumulateType ElementAccumulateType