|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNumericTraitsTensorPixel_h
19 #define itkNumericTraitsTensorPixel_h
43 template <
typename T,
unsigned int D>
157 if (s != D * (D + 1) / 2)
159 itkGenericExceptionMacro(<<
"Cannot set the size of a SymmetricSecondRankTensor "
161 << D <<
" ( = size of " << D * (D + 1) / 2 <<
") to " << s);
178 return D * (D + 1) / 2;
187 template <
typename TArray>
191 for (
unsigned int i = 0; i <
GetLength(); i++)
205 #endif // itkNumericTraitsTensorPixel_h
static const Self ITKCommon_EXPORT One
typename NumericTraits< T >::PrintType ElementPrintType
static const Self NonpositiveMin()
static constexpr T NonpositiveMin()
static const Self OneValue()
static void AssignToArray(const Self &v, TArray &mv)
typename NumericTraits< T >::AbsType ElementAbsType
static const Self ZeroValue()
static unsigned int GetLength()
Represent a symmetric tensor of second rank.
static constexpr bool IsSigned
static constexpr bool IsInteger
static unsigned int GetLength(const SymmetricSecondRankTensor< T, D > &)
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
typename NumericTraits< T >::RealType ElementRealType
static const Self ZeroValue(const Self &)
Define additional traits for native types such as int or float.
static const Self ITKCommon_EXPORT Zero
ElementRealType ScalarRealType
static const Self min(const Self &)
static void SetLength(SymmetricSecondRankTensor< T, D > &m, const unsigned int s)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
static unsigned int GetLength()
static constexpr bool IsComplex
typename NumericTraits< T >::FloatType ElementFloatType
static const Self NonpositiveMin(const Self &)
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static const Self OneValue(const Self &)
static const Self max(const Self &)
void Fill(const ValueType &)