ITK
4.4.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 43 of file itkVariableSizeMatrix.h.
Public Types | |
typedef T | ComponentType |
typedef vnl_matrix< T > | InternalMatrixType |
typedef VariableSizeMatrix | Self |
typedef T | ValueType |
Public Member Functions | |
unsigned int | Cols () const |
void | Fill (const T &value) |
vnl_matrix< T > | GetTranspose (void) const |
InternalMatrixType & | GetVnlMatrix (void) |
const InternalMatrixType & | GetVnlMatrix (void) 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 (void) |
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 (void) const |
Private Attributes | |
InternalMatrixType | m_Matrix |
typedef T itk::VariableSizeMatrix< T >::ComponentType |
Definition at line 51 of file itkVariableSizeMatrix.h.
typedef vnl_matrix< T > itk::VariableSizeMatrix< T >::InternalMatrixType |
Internal matrix type
Definition at line 54 of file itkVariableSizeMatrix.h.
typedef VariableSizeMatrix itk::VariableSizeMatrix< T >::Self |
Standard class typedefs.
Definition at line 47 of file itkVariableSizeMatrix.h.
typedef T itk::VariableSizeMatrix< T >::ValueType |
Component value type
Definition at line 50 of file itkVariableSizeMatrix.h.
|
inline |
Default constructor.
Definition at line 196 of file itkVariableSizeMatrix.h.
itk::VariableSizeMatrix< T >::VariableSizeMatrix | ( | unsigned int | rows, |
unsigned int | cols | ||
) |
|
inline |
Copy constructor.
Definition at line 201 of file itkVariableSizeMatrix.h.
|
inline |
Return number of columns in the matrix
Definition at line 207 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 154 of file itkVariableSizeMatrix.h.
Referenced by itk::VectorThresholdSegmentationLevelSetFunction< TImageType, TFeatureImageType >::VectorThresholdSegmentationLevelSetFunction().
|
inline |
Return the inverse matrix.
Definition at line 182 of file itkVariableSizeMatrix.h.
|
inline |
Return the transposed matrix.
Definition at line 190 of file itkVariableSizeMatrix.h.
|
inline |
Return the matrix.
Definition at line 136 of file itkVariableSizeMatrix.h.
Referenced by itk::operator<<().
|
inline |
Return the matrix.
Definition at line 142 of file itkVariableSizeMatrix.h.
|
inline |
Definition at line 169 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 112 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 118 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 91 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 88 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 103 of file itkVariableSizeMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 100 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 160 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 175 of file itkVariableSizeMatrix.h.
|
inline |
Comparison operators.
Comparison
Definition at line 230 of file itkVariableSizeMatrix.h.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
Referenced by itk::VariableSizeMatrix< double >::operator!=().
|
inline |
Return a row of the matrix.
Definition at line 124 of file itkVariableSizeMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 130 of file itkVariableSizeMatrix.h.
|
inline |
Return number of rows in the matrix
Definition at line 204 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 148 of file itkVariableSizeMatrix.h.
|
inline |
Set the matrix size. Old data lost. Returns true if size changed.
Definition at line 210 of file itkVariableSizeMatrix.h.
|
private |
Definition at line 213 of file itkVariableSizeMatrix.h.
Referenced by itk::VariableSizeMatrix< double >::Cols(), itk::VariableSizeMatrix< double >::Fill(), itk::VariableSizeMatrix< double >::GetInverse(), itk::VariableSizeMatrix< double >::GetTranspose(), itk::VariableSizeMatrix< double >::GetVnlMatrix(), itk::VariableSizeMatrix< double >::operator()(), itk::VariableSizeMatrix< double >::operator*=(), itk::VariableSizeMatrix< double >::operator/=(), itk::VariableSizeMatrix< double >::operator=(), itk::VariableSizeMatrix< T >::operator==(), itk::VariableSizeMatrix< double >::operator[](), itk::VariableSizeMatrix< double >::Rows(), itk::VariableSizeMatrix< double >::SetIdentity(), and itk::VariableSizeMatrix< double >::SetSize().