18 #ifndef itkNumericTraitsTensorPixel_h
19 #define itkNumericTraitsTensorPixel_h
43 template<
typename T,
unsigned int D >
125 return NonpositiveMin();
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
Define numeric traits for std::vector.
typename NumericTraits< T >::AccumulateType ElementAccumulateType
Represent a symmetric tensor of second rank.
static void SetLength(SymmetricSecondRankTensor< T, D > &m, const unsigned int s)
ElementRealType ScalarRealType
static unsigned int GetLength()
typename NumericTraits< T >::PrintType ElementPrintType
static const Self ITKCommon_EXPORT Zero
void Fill(const ValueType &)
static const Self NonpositiveMin(const Self &)
static const Self min(const Self &)
static const Self NonpositiveMin()
static const Self OneValue(const Self &)
static unsigned int GetLength(const SymmetricSecondRankTensor< T, D > &)
static const Self OneValue()
typename NumericTraits< T >::FloatType ElementFloatType
typename NumericTraits< T >::RealType ElementRealType
static void AssignToArray(const Self &v, TArray &mv)
static const Self ZeroValue(const Self &)
static const Self max(const Self &)
static const Self ZeroValue()
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
typename NumericTraits< T >::AbsType ElementAbsType
static const Self ITKCommon_EXPORT One