|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNumericTraitsFixedArrayPixel_h
19 #define itkNumericTraitsFixedArrayPixel_h
43 template <
typename T,
unsigned int D>
154 itkGenericExceptionMacro(
"Cannot set the size of a FixedArray of length " << D <<
" to " << s);
180 template <
typename TArray>
184 for (
unsigned int i = 0; i < D; ++i)
202 #define itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, D) \
204 ITKCommon_EXPORT const GENERIC_ARRAY<T, D> NumericTraits<GENERIC_ARRAY<T, D>>::Zero = \
205 MakeFilled<GENERIC_ARRAY<T, D>>(NumericTraits<T>::Zero); \
207 ITKCommon_EXPORT const GENERIC_ARRAY<T, D> NumericTraits<GENERIC_ARRAY<T, D>>::One = \
208 MakeFilled<GENERIC_ARRAY<T, D>>(NumericTraits<T>::One); \
209 ITK_MACROEND_NOOP_STATEMENT
215 #define itkStaticNumericTraitsGenericArrayDimensionsMacro(GENERIC_ARRAY, T) \
216 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 1); \
217 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 2); \
218 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 3); \
219 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 4); \
220 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 5); \
221 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 6); \
222 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 7); \
223 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 8); \
224 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 9); \
225 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 10); \
226 ITK_MACROEND_NOOP_STATEMENT
229 #endif // itkNumericTraitsFixedArrayPixel_h
static const Self ITKCommon_EXPORT One
static const Self OneValue(const Self &)
typename NumericTraits< T >::PrintType ElementPrintType
static constexpr T NonpositiveMin()
static const Self max(const Self &)
static const Self ITKCommon_EXPORT Zero
static const Self min(const Self &)
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
ElementRealType ScalarRealType
static void SetLength(FixedArray< T, D > &m, const unsigned int s)
typename NumericTraits< T >::AbsType ElementAbsType
static const Self NonpositiveMin(const Self &)
static const Self NonpositiveMin()
typename NumericTraits< T >::RealType ElementRealType
Simulate a standard C array with copy semantics.
static void AssignToArray(const Self &v, TArray &mv)
Define additional traits for native types such as int or float.
static const Self ZeroValue()
static const Self OneValue()
static const Self ZeroValue(const Self &)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static unsigned int GetLength()
typename NumericTraits< T >::FloatType ElementFloatType
static unsigned int GetLength(const FixedArray< T, D > &)
void Fill(const ValueType &)