18 #ifndef itkNumericTraitsTensorPixel_h
19 #define itkNumericTraitsTensorPixel_h
43 template<
typename T,
unsigned int D >
148 if ( s != D *( D + 1 ) / 2 )
150 itkGenericExceptionMacro(<<
"Cannot set the size of a SymmetricSecondRankTensor "
151 "of dimension " << D <<
" ( = size of "
152 << D *( D + 1 ) / 2 <<
") to " << s);
167 return D *( D + 1 ) / 2;
175 template<
typename TArray>
178 for(
unsigned int i=0; i<
GetLength(); i++ )
192 #endif // itkNumericTraitsTensorPixel_h
SymmetricSecondRankTensor< ElementPrintType, D > PrintType
NumericTraits< T >::RealType ElementRealType
Represent a symmetric tensor of second rank.
static void SetLength(SymmetricSecondRankTensor< T, D > &m, const unsigned int s)
static unsigned int GetLength()
SymmetricSecondRankTensor< T, D > Self
static const bool IsSigned
NumericTraits< T >::AbsType ElementAbsType
static const Self ITKCommon_EXPORT Zero
void Fill(const ValueType &)
SymmetricSecondRankTensor< ElementAbsType, D > AbsType
Self MeasurementVectorType
static const Self NonpositiveMin(const Self &)
static const Self min(const Self &)
static const Self NonpositiveMin()
NumericTraits< T >::PrintType ElementPrintType
static unsigned int GetLength()
static const Self OneValue(const Self &)
static unsigned int GetLength(const SymmetricSecondRankTensor< T, D > &)
static const Self OneValue()
SymmetricSecondRankTensor< ElementAccumulateType, D > AccumulateType
SymmetricSecondRankTensor< ElementFloatType, D > FloatType
NumericTraits< T >::AccumulateType ElementAccumulateType
static void AssignToArray(const Self &v, TArray &mv)
NumericTraits< T >::FloatType ElementFloatType
ElementRealType ScalarRealType
SymmetricSecondRankTensor< ElementRealType, D > RealType
static const bool IsInteger
static T NonpositiveMin()
static const bool IsComplex
Define additional traits for native types such as int or float.
static const Self ZeroValue(const Self &)
static const Self max(const Self &)
static const Self ZeroValue()
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self ITKCommon_EXPORT One