ITK
5.0.0
Insight Segmentation and Registration 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 44 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 > | GetTranspose () const |
InternalMatrixType & | GetVnlMatrix () |
const InternalMatrixType & | GetVnlMatrix () const |
bool | operator!= (const Self &matrix) const |
T & | operator() (unsigned int row, unsigned int col) |
const T & | operator() (unsigned int row, unsigned int col) const |
Array< T > | operator* (const Array< T > &vector) const |
Self | operator* (const Self &matrix) const |
vnl_matrix< T > | operator* (const vnl_matrix< T > &matrix) const |
vnl_vector< T > | operator* (const vnl_vector< T > &matrix) const |
Self | operator* (const T &value) |
void | operator*= (const Self &matrix) |
void | operator*= (const vnl_matrix< T > &matrix) |
void | operator*= (const T &value) |
Self | operator+ (const Self &matrix) const |
const Self & | operator+= (const Self &matrix) |
Self | operator- (const Self &matrix) const |
Self & | operator- () |
const Self & | operator-= (const Self &matrix) |
Self | operator/ (const T &value) |
void | operator/= (const T &value) |
const Self & | operator= (const vnl_matrix< T > &matrix) |
const Self & | operator= (const Self &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 (unsigned int rows, unsigned int cols) | |
VariableSizeMatrix (const Self &matrix) | |
bool | operator== (const Self &matrix) const |
vnl_matrix< T > | GetInverse () const |
Private Attributes | |
InternalMatrixType | m_Matrix |
using itk::VariableSizeMatrix< T >::ComponentType = T |
Definition at line 52 of file itkVariableSizeMatrix.h.
using itk::VariableSizeMatrix< T >::InternalMatrixType = vnl_matrix< T > |
Internal matrix type
Definition at line 55 of file itkVariableSizeMatrix.h.
using itk::VariableSizeMatrix< T >::Self = VariableSizeMatrix |
Standard class type aliases.
Definition at line 48 of file itkVariableSizeMatrix.h.
using itk::VariableSizeMatrix< T >::ValueType = T |
Component value type
Definition at line 51 of file itkVariableSizeMatrix.h.
|
inline |
Default constructor.
Definition at line 197 of file itkVariableSizeMatrix.h.
itk::VariableSizeMatrix< T >::VariableSizeMatrix | ( | unsigned int | rows, |
unsigned int | cols | ||
) |
|
inline |
Copy constructor.
Definition at line 202 of file itkVariableSizeMatrix.h.
|
inline |
Return number of columns in the matrix
Definition at line 208 of file itkVariableSizeMatrix.h.
Referenced by itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNthComponent(), itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNumberOfComponents(), itk::VariableSizeMatrix< T >::operator==(), itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::SetNthComponent(), and itk::MeshIOBase::SetPixelType().
|
inline |
Fill the matrix with a value.
Definition at line 155 of file itkVariableSizeMatrix.h.
|
inline |
Return the inverse matrix.
Definition at line 183 of file itkVariableSizeMatrix.h.
|
inline |
Return the transposed matrix.
Definition at line 191 of file itkVariableSizeMatrix.h.
|
inline |
Return the matrix.
Definition at line 137 of file itkVariableSizeMatrix.h.
Referenced by itk::operator<<().
|
inline |
Return the matrix.
Definition at line 143 of file itkVariableSizeMatrix.h.
|
inline |
Definition at line 170 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 113 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 119 of file itkVariableSizeMatrix.h.
Array< T > itk::VariableSizeMatrix< T >::operator* | ( | const Array< T > & | vector | ) | const |
Self itk::VariableSizeMatrix< T >::operator* | ( | const Self & | matrix | ) | const |
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 > & | matrix | ) | const |
Matrix by vnl_vector multiplication.
|
inline |
Matrix by scalar multiplication.
Definition at line 92 of file itkVariableSizeMatrix.h.
void itk::VariableSizeMatrix< T >::operator*= | ( | const Self & | matrix | ) |
void itk::VariableSizeMatrix< T >::operator*= | ( | const vnl_matrix< T > & | matrix | ) |
Matrix by vnl_matrix multiplication.
|
inline |
Matrix by scalar multiplication.
Definition at line 89 of file itkVariableSizeMatrix.h.
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- | ( | const Self & | matrix | ) | const |
Matrix addition.
Self& itk::VariableSizeMatrix< T >::operator- | ( | ) |
negation operator
const Self& itk::VariableSizeMatrix< T >::operator-= | ( | const Self & | matrix | ) |
|
inline |
Matrix by scalar division.
Definition at line 104 of file itkVariableSizeMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 101 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 161 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 176 of file itkVariableSizeMatrix.h.
|
inline |
Comparison operators.
Comparison
Definition at line 231 of file itkVariableSizeMatrix.h.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, itk::Math::NotExactlyEquals(), and itk::VariableSizeMatrix< T >::Rows().
|
inline |
Return a row of the matrix.
Definition at line 125 of file itkVariableSizeMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 131 of file itkVariableSizeMatrix.h.
|
inline |
Return number of rows in the matrix
Definition at line 205 of file itkVariableSizeMatrix.h.
Referenced by itk::DefaultConvertPixelTraits< VariableSizeMatrix< VComponent > >::GetNumberOfComponents(), itk::VariableSizeMatrix< T >::operator==(), and itk::MeshIOBase::SetPixelType().
|
inline |
Set the matrix to identity.
Definition at line 149 of file itkVariableSizeMatrix.h.
|
inline |
Set the matrix size. Old data lost. Returns true if size changed.
Definition at line 211 of file itkVariableSizeMatrix.h.
|
private |
Definition at line 214 of file itkVariableSizeMatrix.h.
Referenced by itk::VariableSizeMatrix< double >::operator=(), and itk::VariableSizeMatrix< T >::operator==().