18 #ifndef itkNumericTraitsFixedArrayPixel_h
19 #define itkNumericTraitsFixedArrayPixel_h
43 template<
typename T,
unsigned int D >
125 return NonpositiveMin();
145 itkGenericExceptionMacro(<<
"Cannot set the size of a FixedArray of length "
146 << D <<
" to " << s);
169 template<
typename TArray>
172 for(
unsigned int i=0; i<D; i++ )
190 #define itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, D) \
192 ITKCommon_EXPORT const GENERIC_ARRAY< T, D > NumericTraits< GENERIC_ARRAY< T, D > >::Zero = \
193 GENERIC_ARRAY< T, D >( (T)(NumericTraits< T >::Zero) ); \
195 ITKCommon_EXPORT const GENERIC_ARRAY< T, D > NumericTraits< GENERIC_ARRAY< T, D > >::One = \
196 GENERIC_ARRAY< T, D >( (T)(NumericTraits< T >::One) );
202 #define itkStaticNumericTraitsGenericArrayDimensionsMacro(GENERIC_ARRAY, T) \
203 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 1); \
204 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 2); \
205 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 3); \
206 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 4); \
207 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 5); \
208 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 6); \
209 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 7); \
210 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 8); \
211 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 9); \
212 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 10);
215 #endif // itkNumericTraitsFixedArrayPixel_h
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
Define numeric traits for std::vector.
static unsigned int GetLength(const FixedArray< T, D > &)
static void AssignToArray(const Self &v, TArray &mv)
static const Self ZeroValue()
static unsigned int GetLength()
typename NumericTraits< T >::AbsType ElementAbsType
void Fill(const ValueType &)
Simulate a standard C array with copy semnatics.
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static const Self min(const Self &)
static const Self max(const Self &)
static const Self ZeroValue(const Self &)
static const Self OneValue()
static const Self ITKCommon_EXPORT One
typename NumericTraits< T >::PrintType ElementPrintType
static const Self OneValue(const Self &)
static const Self ITKCommon_EXPORT Zero
typename NumericTraits< T >::RealType ElementRealType
static const Self NonpositiveMin(const Self &)
static const Self NonpositiveMin()
ElementRealType ScalarRealType
typename NumericTraits< T >::FloatType ElementFloatType
static void SetLength(FixedArray< T, D > &m, const unsigned int s)