19 #ifndef itkNumericTraitsStdVector_h
20 #define itkNumericTraitsStdVector_h
55 template<
typename T >
69 typedef std::vector< T >
Self;
72 typedef std::vector< ElementAbsType >
AbsType;
87 typedef std::vector< ElementRealType >
RealType;
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)
NumericTraits< T >::FloatType ElementFloatType
std::vector< ElementPrintType > PrintType
static ITK_CONSTEXPR_VAR bool IsComplex
static void SetLength(std::vector< T > &m, const unsigned int s)
NumericTraits< T >::AccumulateType ElementAccumulateType
std::vector< ElementAccumulateType > AccumulateType
static ITK_CONSTEXPR_VAR bool IsInteger
NumericTraits< T >::RealType ElementRealType
std::vector< ElementAbsType > AbsType
static const Self max(const Self &a)
static ITK_CONSTEXPR_FUNC T max(const T &)
static const Self min(const Self &a)
ElementRealType ScalarRealType
std::vector< ElementFloatType > FloatType
static unsigned int GetLength(const std::vector< T > &m)
static unsigned int GetLength()
NumericTraits< T >::AbsType ElementAbsType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self ZeroValue(const Self &a)
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
Self MeasurementVectorType
static ITK_CONSTEXPR_FUNC T min(const T &)
static ITK_CONSTEXPR_VAR bool IsSigned
static const Self NonpositiveMin(const Self &a)
NumericTraits< T >::PrintType ElementPrintType
Define additional traits for native types such as int or float.
static void AssignToArray(const Self &v, TArray &mv)
std::vector< ElementRealType > RealType