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)
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 void SetLength(std::vector< T > &m, const unsigned int s)
NumericTraits< T >::AccumulateType ElementAccumulateType
std::vector< ElementAccumulateType > AccumulateType
static const bool IsSigned
NumericTraits< T >::RealType ElementRealType
std::vector< ElementAbsType > AbsType
static const Self max(const Self &a)
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)
Self MeasurementVectorType
static const Self NonpositiveMin(const Self &a)
NumericTraits< T >::PrintType ElementPrintType
static const bool IsInteger
static T NonpositiveMin()
static const bool IsComplex
Define additional traits for native types such as int or float.
static void AssignToArray(const Self &v, TArray &mv)
std::vector< ElementRealType > RealType