#include <itkVariableSizeMatrix.h>
A templated class holding a M x N size Matrix.
This class contains a vnl_matrix in order to make all the vnl mathematical methods available. This class is meant to be used when the matrix length cannot be determined at compile time.
Definition at line 48 of file itkVariableSizeMatrix.h.
Public Types | |
| using | ComponentType = T |
| using | InternalMatrixType = vnl_matrix<T> |
| using | Self = VariableSizeMatrix |
| using | ValueType = T |
Public Member Functions | |
| unsigned int | Cols () const |
| void | Fill (const T &value) |
| vnl_matrix< T > | GetInverse () const |
| vnl_matrix< T > | GetTranspose () const |
| InternalMatrixType & | GetVnlMatrix () |
| const InternalMatrixType & | GetVnlMatrix () const |
| ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self) | |
| T & | operator() (unsigned int row, unsigned int col) |
| const T & | operator() (unsigned int row, unsigned int col) const |
| Array< T > | operator* (const Array< T > &vect) const |
| Self | operator* (const Self &matrix) const |
| Self | operator* (const T &value) const |
| vnl_matrix< T > | operator* (const vnl_matrix< T > &matrix) const |
| vnl_vector< T > | operator* (const vnl_vector< T > &vc) const |
| void | operator*= (const Self &matrix) |
| void | operator*= (const T &value) |
| void | operator*= (const vnl_matrix< T > &matrix) |
| Self | operator+ (const Self &matrix) const |
| const Self & | operator+= (const Self &matrix) |
| Self & | operator- () |
| Self | operator- (const Self &matrix) const |
| const Self & | operator-= (const Self &matrix) |
| Self | operator/ (const T &value) const |
| void | operator/= (const T &value) |
| Self & | operator= (const Self &matrix)=default |
| Self & | operator= (const vnl_matrix< T > &matrix) |
| bool | operator== (const Self &matrix) const |
| T * | operator[] (unsigned int i) |
| const T * | operator[] (unsigned int i) const |
| unsigned int | Rows () const |
| void | SetIdentity () |
| bool | SetSize (unsigned int r, unsigned int c) |
| VariableSizeMatrix () | |
| VariableSizeMatrix (const Self &matrix) | |
| VariableSizeMatrix (unsigned int rows, unsigned int cols) | |
Private Attributes | |
| InternalMatrixType | m_Matrix |
| using itk::VariableSizeMatrix< T >::ComponentType = T |
Definition at line 56 of file itkVariableSizeMatrix.h.
| using itk::VariableSizeMatrix< T >::InternalMatrixType = vnl_matrix<T> |
Internal matrix type
Definition at line 59 of file itkVariableSizeMatrix.h.
| using itk::VariableSizeMatrix< T >::Self = VariableSizeMatrix |
Standard class type aliases.
Definition at line 52 of file itkVariableSizeMatrix.h.
| using itk::VariableSizeMatrix< T >::ValueType = T |
Component value type
Definition at line 55 of file itkVariableSizeMatrix.h.
|
inline |
Default constructor.
Definition at line 226 of file itkVariableSizeMatrix.h.
| itk::VariableSizeMatrix< T >::VariableSizeMatrix | ( | unsigned int | rows, |
| unsigned int | cols ) |
|
inline |
Copy constructor.
Definition at line 233 of file itkVariableSizeMatrix.h.
|
inlinenodiscard |
Return number of columns in the matrix
Definition at line 246 of file itkVariableSizeMatrix.h.
Referenced by itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNthComponent(), itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNumberOfComponents(), operator==(), itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::SetNthComponent(), and itk::MeshIOBase::SetPixelType().
|
inline |
Fill the matrix with a value.
Definition at line 188 of file itkVariableSizeMatrix.h.
|
inlinenodiscard |
Return the inverse matrix.
Definition at line 213 of file itkVariableSizeMatrix.h.
|
inlinenodiscard |
Return the transposed matrix.
Definition at line 220 of file itkVariableSizeMatrix.h.
|
inline |
Return the matrix.
Definition at line 167 of file itkVariableSizeMatrix.h.
Referenced by itk::operator<<().
|
inlinenodiscard |
Return the matrix.
Definition at line 174 of file itkVariableSizeMatrix.h.
| itk::VariableSizeMatrix< T >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION | ( | Self | ) |
|
inline |
Return an element of the matrix.
Definition at line 139 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 146 of file itkVariableSizeMatrix.h.
| Array< T > itk::VariableSizeMatrix< T >::operator* | ( | const Array< T > & | vect | ) | const |
| Self itk::VariableSizeMatrix< T >::operator* | ( | const Self & | matrix | ) | const |
|
inline |
Matrix by scalar multiplication.
Definition at line 112 of file itkVariableSizeMatrix.h.
| vnl_matrix< T > itk::VariableSizeMatrix< T >::operator* | ( | const vnl_matrix< T > & | matrix | ) | const |
Matrix by vnl_matrix multiplication.
| vnl_vector< T > itk::VariableSizeMatrix< T >::operator* | ( | const vnl_vector< T > & | vc | ) | const |
Matrix by vnl_vector multiplication.
| void itk::VariableSizeMatrix< T >::operator*= | ( | const Self & | matrix | ) |
|
inline |
Matrix by scalar multiplication.
Definition at line 105 of file itkVariableSizeMatrix.h.
| void itk::VariableSizeMatrix< T >::operator*= | ( | const vnl_matrix< T > & | matrix | ) |
Matrix by vnl_matrix multiplication.
| Self itk::VariableSizeMatrix< T >::operator+ | ( | const Self & | matrix | ) | const |
Matrix addition.
| const Self & itk::VariableSizeMatrix< T >::operator+= | ( | const Self & | matrix | ) |
| Self & itk::VariableSizeMatrix< T >::operator- | ( | ) |
negation operator
| Self itk::VariableSizeMatrix< T >::operator- | ( | const Self & | matrix | ) | const |
Matrix addition.
| const Self & itk::VariableSizeMatrix< T >::operator-= | ( | const Self & | matrix | ) |
|
inline |
Matrix by scalar division.
Definition at line 129 of file itkVariableSizeMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 122 of file itkVariableSizeMatrix.h.
|
inlinedefault |
Assignment operator.
|
inline |
Assignment operator.
Definition at line 195 of file itkVariableSizeMatrix.h.
|
inline |
Comparison operators.
Comparison
Definition at line 275 of file itkVariableSizeMatrix.h.
References Cols(), m_Matrix, itk::Math::NotExactlyEquals(), and Rows().
|
inline |
Return a row of the matrix.
Definition at line 153 of file itkVariableSizeMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 160 of file itkVariableSizeMatrix.h.
|
inlinenodiscard |
Return number of rows in the matrix
Definition at line 239 of file itkVariableSizeMatrix.h.
Referenced by itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNumberOfComponents(), operator==(), and itk::MeshIOBase::SetPixelType().
|
inline |
Set the matrix to identity.
Definition at line 181 of file itkVariableSizeMatrix.h.
|
inline |
Set the matrix size. Old data lost. Returns true if size changed.
Definition at line 253 of file itkVariableSizeMatrix.h.
|
private |
Definition at line 259 of file itkVariableSizeMatrix.h.
Referenced by operator==().