18#ifndef itkSymmetricSecondRankTensor_h
19#define itkSymmetricSecondRankTensor_h
22#ifdef SymmetricSecondRankTensor
23# undef SymmetricSecondRankTensor
74template <
typename TComponent,
unsigned int VDimension = 3>
83 static constexpr unsigned int Dimension = VDimension;
84 static constexpr unsigned int InternalDimension = VDimension * (VDimension + 1) / 2;
107#ifdef ITK_FUTURE_LEGACY_REMOVE
117 template <
typename TCoordRepB>
130 template <
typename TCoordRepB>
134 BaseArray::operator=(pa);
176 return Self::InternalDimension;
183 return this->operator[](c);
190 this->operator[](c) = v;
221 template <
typename TMatrixValueType>
224 template <
typename TMatrixValueType>
226 Rotate(
const vnl_matrix_fixed<TMatrixValueType, VDimension, VDimension> & m)
const
230 template <
typename TMatrixValueType>
232 Rotate(
const vnl_matrix<TMatrixValueType> & m)
const
254template <
typename TComponent,
unsigned int VDimension>
258template <
typename TComponent,
unsigned int VDimension>
272#ifndef ITK_MANUAL_INSTANTIATION
273# include "itkSymmetricSecondRankTensor.hxx"
Pixel-wise addition of two images.
Simulate a standard C array with copy semantics.
void swap(FixedArray &other)
A templated class holding a M x N size Matrix.
Represent a symmetric tensor of second rank.
void ComputeEigenAnalysis(EigenValuesArrayType &eigenValues, EigenVectorsMatrixType &eigenVectors) const
const Self & operator*=(const RealValueType &r)
static unsigned int GetNumberOfComponents()
Self operator/(const RealValueType &r) const
SymmetricSecondRankTensor()=default
MatrixType PostMultiply(const MatrixType &m) const
Self operator*(const RealValueType &r) const
typename NumericTraits< ValueType >::RealType RealValueType
Self Rotate(const vnl_matrix< TMatrixValueType > &m) const
SymmetricSecondRankTensor(const ComponentType &r)
Self & operator=(const ComponentArrayType r)
Self operator+(const Self &r) const
SymmetricSecondRankTensor(const ComponentArrayType r)
Self operator-(const Self &r) const
ComponentType[Self::InternalDimension] ComponentArrayType
Self & operator=(const SymmetricSecondRankTensor< TCoordRepB, VDimension > &pa)
AccumulateValueType GetTrace() const
Self Rotate(const Matrix< TMatrixValueType, VDimension, VDimension > &m) const
Self & operator=(const ComponentType &r)
MatrixType PreMultiply(const MatrixType &m) const
ComponentType GetNthComponent(int c) const
const Self & operator+=(const Self &r)
void ComputeEigenValues(EigenValuesArrayType &eigenValues) const
const Self & operator-=(const Self &r)
Self Rotate(const vnl_matrix_fixed< TMatrixValueType, VDimension, VDimension > &m) const
const ValueType & operator()(unsigned int row, unsigned int col) const
typename NumericTraits< ValueType >::RealType AccumulateValueType
const Self & operator/=(const RealValueType &r)
void SetNthComponent(int c, const ComponentType &v)
ValueType & operator()(unsigned int row, unsigned int col)
SymmetricSecondRankTensor(const SymmetricSecondRankTensor< TCoordRepB, VDimension > &pa)
constexpr unsigned int Dimension
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
void swap(Array< T > &a, Array< T > &b) noexcept
std::istream & operator>>(std::istream &is, Point< T, VPointDimension > &vct)
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)
std::istream InputStreamType
std::ostream OutputStreamType