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;
132 static void SetLength(std::vector< T > & m,
const unsigned int s)
142 static unsigned int GetLength(
const std::vector< T > & m)
152 template<
typename TArray>
155 for(
unsigned int i=0; i<
GetLength(v); i++ )
164 #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
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 T NonpositiveMin()
Define additional traits for native types such as int or float.
static void AssignToArray(const Self &v, TArray &mv)
std::vector< ElementRealType > RealType