|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkVariableSizeMatrix_h
19 #define itkVariableSizeMatrix_h
23 #include "vnl/vnl_matrix_fixed.h"
24 #include "vnl/algo/vnl_matrix_inverse.h"
25 #include "vnl/vnl_transpose.h"
26 #include "vnl/vnl_matrix.h"
71 operator+=(
const Self & matrix);
78 operator-=(
const Self & matrix);
86 operator*(
const vnl_matrix<T> & matrix)
const;
90 operator*=(
const Self & matrix);
94 operator*=(
const vnl_matrix<T> & matrix);
98 operator*(
const vnl_vector<T> & vc)
const;
138 return m_Matrix(row, col);
145 return m_Matrix(row, col);
163 inline InternalMatrixType &
170 inline const InternalMatrixType &
180 m_Matrix.set_identity();
187 m_Matrix.fill(value);
202 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
216 return vnl_matrix_inverse<T>(m_Matrix).as_matrix();
223 return m_Matrix.transpose();
235 : m_Matrix(matrix.m_Matrix)
242 return m_Matrix.rows();
249 return m_Matrix.cols();
256 return m_Matrix.set_size(r, c);
263 template <
typename T>
274 template <
typename T>
278 if ((matrix.
Rows() != this->Rows()) || (matrix.
Cols() != this->Cols()))
285 for (
unsigned int r = 0; r < this->Rows(); ++r)
287 for (
unsigned int c = 0; c < this->Cols(); ++c)
300 #ifndef ITK_MANUAL_INSTANTIATION
301 # include "itkVariableSizeMatrix.hxx"
Self & operator=(const vnl_matrix< T > &matrix)
bool SetSize(unsigned int r, unsigned int c)
VariableSizeMatrix(const Self &matrix)
T & operator()(unsigned int row, unsigned int col)
CovariantVector< T, VVectorDimension > operator*(const T &scalar, const CovariantVector< T, VVectorDimension > &v)
Self & operator=(const Self &matrix)
ConstNeighborhoodIterator< TImage > operator-(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
T * operator[](unsigned int i)
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
void operator/=(const T &value)
A templated class holding a M x N size Matrix.
Self operator/(const T &value) const
vnl_matrix< T > GetInverse() const
const InternalMatrixType & GetVnlMatrix() const
const T * operator[](unsigned int i) const
InternalMatrixType m_Matrix
Self operator*(const T &value) const
InternalMatrixType & GetVnlMatrix()
unsigned int Cols() const
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
vnl_matrix< double > InternalMatrixType
vnl_matrix< T > GetTranspose() const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
const T & operator()(unsigned int row, unsigned int col) const
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
Array class with size defined at construction time.
void Fill(const T &value)
unsigned int Rows() const
void operator*=(const T &value)
bool operator==(const Self &matrix) const