ITK
6.0.0
Insight Toolkit
|
#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 45 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) |
Self & | operator= (const vnl_matrix< T > &matrix) |
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) | |
bool | operator== (const Self &matrix) const |
Private Attributes | |
InternalMatrixType | m_Matrix |
using itk::VariableSizeMatrix< T >::ComponentType = T |
Definition at line 53 of file itkVariableSizeMatrix.h.
using itk::VariableSizeMatrix< T >::InternalMatrixType = vnl_matrix<T> |
Internal matrix type
Definition at line 56 of file itkVariableSizeMatrix.h.
using itk::VariableSizeMatrix< T >::Self = VariableSizeMatrix |
Standard class type aliases.
Definition at line 49 of file itkVariableSizeMatrix.h.
using itk::VariableSizeMatrix< T >::ValueType = T |
Component value type
Definition at line 52 of file itkVariableSizeMatrix.h.
|
inline |
Default constructor.
Definition at line 214 of file itkVariableSizeMatrix.h.
itk::VariableSizeMatrix< T >::VariableSizeMatrix | ( | unsigned int | rows, |
unsigned int | cols | ||
) |
|
inline |
Copy constructor.
Definition at line 221 of file itkVariableSizeMatrix.h.
|
inline |
Return number of columns in the matrix
Definition at line 234 of file itkVariableSizeMatrix.h.
Referenced by itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNthComponent(), itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNumberOfComponents(), itk::VariableSizeMatrix< double >::operator==(), itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::SetNthComponent(), and itk::MeshIOBase::SetPixelType().
|
inline |
Fill the matrix with a value.
Definition at line 172 of file itkVariableSizeMatrix.h.
|
inline |
Return the inverse matrix.
Definition at line 201 of file itkVariableSizeMatrix.h.
|
inline |
Return the transposed matrix.
Definition at line 208 of file itkVariableSizeMatrix.h.
|
inline |
Return the matrix.
Definition at line 151 of file itkVariableSizeMatrix.h.
Referenced by itk::operator<<().
|
inline |
Return the matrix.
Definition at line 158 of file itkVariableSizeMatrix.h.
itk::VariableSizeMatrix< T >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION | ( | Self | ) |
|
inline |
Return an element of the matrix.
Definition at line 131 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 138 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 104 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 98 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 121 of file itkVariableSizeMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 114 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 193 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 179 of file itkVariableSizeMatrix.h.
|
inline |
|
inline |
Return a row of the matrix.
Definition at line 144 of file itkVariableSizeMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 147 of file itkVariableSizeMatrix.h.
|
inline |
Return number of rows in the matrix
Definition at line 227 of file itkVariableSizeMatrix.h.
Referenced by itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNumberOfComponents(), itk::VariableSizeMatrix< double >::operator==(), and itk::MeshIOBase::SetPixelType().
|
inline |
Set the matrix to identity.
Definition at line 165 of file itkVariableSizeMatrix.h.
|
inline |
Set the matrix size. Old data lost. Returns true if size changed.
Definition at line 241 of file itkVariableSizeMatrix.h.
|
private |
Definition at line 247 of file itkVariableSizeMatrix.h.
Referenced by itk::VariableSizeMatrix< double >::operator=(), and itk::VariableSizeMatrix< double >::operator==().