18 #ifndef itkNumericTraitsFixedArrayPixel_h
19 #define itkNumericTraitsFixedArrayPixel_h
43 template<
typename T,
unsigned int D >
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++ )
186 #define itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, D) \
188 ITKCommon_EXPORT const GENERIC_ARRAY< T, D > NumericTraits< GENERIC_ARRAY< T, D > >::Zero = GENERIC_ARRAY< T, D >( \
189 NumericTraits< T >::Zero); \
191 ITKCommon_EXPORT const GENERIC_ARRAY< T, D > NumericTraits< GENERIC_ARRAY< T, D > >::One = GENERIC_ARRAY< T, D >( \
192 NumericTraits< T >::One);
198 #define itkStaticNumericTraitsGenericArrayDimensionsMacro(GENERIC_ARRAY, T) \
199 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 1); \
200 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 2); \
201 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 3); \
202 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 4); \
203 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 5); \
204 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 6); \
205 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 7); \
206 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 8); \
207 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 9); \
208 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 10);
211 #endif // itkNumericTraitsFixedArrayPixel_h
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
NumericTraits< T >::RealType ElementRealType
static unsigned int GetLength(const FixedArray< T, D > &)
FixedArray< ElementAbsType, D > AbsType
FixedArray< ElementRealType, D > RealType
static void AssignToArray(const Self &v, TArray &mv)
static const Self ZeroValue()
static unsigned int GetLength()
FixedArray< ElementAccumulateType, D > AccumulateType
void Fill(const ValueType &)
Simulate a standard C array with copy semnatics.
NumericTraits< T >::PrintType ElementPrintType
static const Self min(const Self &)
FixedArray< ElementFloatType, D > FloatType
static const Self max(const Self &)
static const Self ZeroValue(const Self &)
static const Self OneValue()
NumericTraits< T >::AbsType ElementAbsType
static const Self ITKCommon_EXPORT One
static const Self OneValue(const Self &)
NumericTraits< T >::AccumulateType ElementAccumulateType
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
static const Self ITKCommon_EXPORT Zero
static const Self NonpositiveMin(const Self &)
static const Self NonpositiveMin()
NumericTraits< T >::FloatType ElementFloatType
ElementRealType ScalarRealType
Define additional traits for native types such as int or float.
FixedArray< ElementPrintType, D > PrintType
Self MeasurementVectorType
static void SetLength(FixedArray< T, D > &m, const unsigned int s)