Orfeo Toolbox  4.2
Public Types | Public Member Functions | Private Attributes | List of all members
itk::VariableSizeMatrix< T > Class Template Reference

A templated class holding a M x N size Matrix. More...

#include <itkVariableSizeMatrix.h>

+ Inheritance diagram for itk::VariableSizeMatrix< T >:

Public Types

typedef T ComponentType
 
typedef vnl_matrix< T > InternalMatrixType
 
typedef VariableSizeMatrix Self
 
typedef T ValueType
 

Public Member Functions

 VariableSizeMatrix ()
 
 VariableSizeMatrix (unsigned int rows, unsigned int cols)
 
 VariableSizeMatrix (const Self &matrix)
 
unsigned int Cols () const
 
void Fill (const T &value)
 
vnl_matrix< T > GetInverse (void) const
 
vnl_matrix< T > GetTranspose (void) const
 
InternalMatrixTypeGetVnlMatrix (void)
 
const InternalMatrixTypeGetVnlMatrix (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 Selfoperator+= (const Self &matrix)
 
Self operator- (const Self &matrix) const
 
Selfoperator- ()
 
const Selfoperator-= (const Self &matrix)
 
Self operator/ (const T &value)
 
void operator/= (const T &value)
 
const Selfoperator= (const vnl_matrix< T > &matrix)
 
const Selfoperator= (const Self &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 (void)
 
bool SetSize (unsigned int r, unsigned int c)
 

Private Attributes

InternalMatrixType m_Matrix
 

Detailed Description

template<typename T>
class itk::VariableSizeMatrix< T >

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.

Member Typedef Documentation

template<typename T>
typedef T itk::VariableSizeMatrix< T >::ComponentType

Definition at line 51 of file itkVariableSizeMatrix.h.

template<typename T>
typedef vnl_matrix< T > itk::VariableSizeMatrix< T >::InternalMatrixType

Internal matrix type

Definition at line 54 of file itkVariableSizeMatrix.h.

template<typename T>
typedef VariableSizeMatrix itk::VariableSizeMatrix< T >::Self

Standard class typedefs.

Definition at line 47 of file itkVariableSizeMatrix.h.

template<typename T>
typedef T itk::VariableSizeMatrix< T >::ValueType

Component value type

Definition at line 50 of file itkVariableSizeMatrix.h.

Constructor & Destructor Documentation

template<typename T>
itk::VariableSizeMatrix< T >::VariableSizeMatrix ( )
inline

Default constructor.

Definition at line 195 of file itkVariableSizeMatrix.h.

template<typename T >
itk::VariableSizeMatrix< T >::VariableSizeMatrix ( unsigned int  rows,
unsigned int  cols 
)

Definition at line 28 of file itkVariableSizeMatrix.hxx.

template<typename T>
itk::VariableSizeMatrix< T >::VariableSizeMatrix ( const Self matrix)
inline

Copy constructor.

Definition at line 200 of file itkVariableSizeMatrix.h.

Member Function Documentation

template<typename T>
unsigned int itk::VariableSizeMatrix< T >::Cols ( ) const
inline
template<typename T>
void itk::VariableSizeMatrix< T >::Fill ( const T &  value)
inline
template<typename T>
vnl_matrix< T > itk::VariableSizeMatrix< T >::GetInverse ( void  ) const
inline
template<typename T>
vnl_matrix< T > itk::VariableSizeMatrix< T >::GetTranspose ( void  ) const
inline
template<typename T>
InternalMatrixType& itk::VariableSizeMatrix< T >::GetVnlMatrix ( void  )
inline
template<typename T>
const InternalMatrixType& itk::VariableSizeMatrix< T >::GetVnlMatrix ( void  ) const
inline

Return the matrix.

Definition at line 142 of file itkVariableSizeMatrix.h.

template<typename T>
bool itk::VariableSizeMatrix< T >::operator!= ( const Self matrix) const
inline

Definition at line 169 of file itkVariableSizeMatrix.h.

template<typename T>
T& itk::VariableSizeMatrix< T >::operator() ( unsigned int  row,
unsigned int  col 
)
inline

Return an element of the matrix.

Definition at line 112 of file itkVariableSizeMatrix.h.

template<typename T>
const T& itk::VariableSizeMatrix< T >::operator() ( unsigned int  row,
unsigned int  col 
) const
inline

Return an element of the matrix.

Definition at line 118 of file itkVariableSizeMatrix.h.

template<typename T>
Array< T > itk::VariableSizeMatrix< T >::operator* ( const Array< T > &  vect) const

Matrix by Vector multiplication.

Product by a Vector

Definition at line 37 of file itkVariableSizeMatrix.hxx.

References itk::Array< TValue >::Size().

template<typename T>
VariableSizeMatrix< T > itk::VariableSizeMatrix< T >::operator* ( const Self matrix) const
template<typename T>
vnl_matrix< T > itk::VariableSizeMatrix< T >::operator* ( const vnl_matrix< T > &  matrix) const

Matrix by vnl_matrix multiplication.

Product by a vnl_matrix

Definition at line 209 of file itkVariableSizeMatrix.hxx.

template<typename T>
vnl_vector< T > itk::VariableSizeMatrix< T >::operator* ( const vnl_vector< T > &  vc) const

Matrix by vnl_vector multiplication.

Product by a vnl_vector

Definition at line 242 of file itkVariableSizeMatrix.hxx.

template<typename T>
Self itk::VariableSizeMatrix< T >::operator* ( const T &  value)
inline

Matrix by scalar multiplication.

Definition at line 91 of file itkVariableSizeMatrix.h.

template<typename T >
void itk::VariableSizeMatrix< T >::operator*= ( const Self matrix)

Matrix by Matrix multiplication.

Product by a matrix

Definition at line 220 of file itkVariableSizeMatrix.hxx.

References itk::VariableSizeMatrix< T >::m_Matrix.

template<typename T>
void itk::VariableSizeMatrix< T >::operator*= ( const vnl_matrix< T > &  matrix)

Matrix by vnl_matrix multiplication.

Product by a vnl_matrix

Definition at line 231 of file itkVariableSizeMatrix.hxx.

template<typename T>
void itk::VariableSizeMatrix< T >::operator*= ( const T &  value)
inline

Matrix by scalar multiplication.

Definition at line 88 of file itkVariableSizeMatrix.h.

template<typename T >
VariableSizeMatrix< T > itk::VariableSizeMatrix< T >::operator+ ( const Self matrix) const
template<typename T >
const VariableSizeMatrix< T > & itk::VariableSizeMatrix< T >::operator+= ( const Self matrix)
template<typename T >
VariableSizeMatrix< T > itk::VariableSizeMatrix< T >::operator- ( const Self matrix) const
template<typename T >
VariableSizeMatrix< T > & itk::VariableSizeMatrix< T >::operator- ( )

negation operator

Definition at line 191 of file itkVariableSizeMatrix.hxx.

template<typename T >
const VariableSizeMatrix< T > & itk::VariableSizeMatrix< T >::operator-= ( const Self matrix)
template<typename T>
Self itk::VariableSizeMatrix< T >::operator/ ( const T &  value)
inline

Matrix by scalar division.

Definition at line 103 of file itkVariableSizeMatrix.h.

template<typename T>
void itk::VariableSizeMatrix< T >::operator/= ( const T &  value)
inline

Matrix by scalar division.

Definition at line 100 of file itkVariableSizeMatrix.h.

template<typename T>
const Self& itk::VariableSizeMatrix< T >::operator= ( const vnl_matrix< T > &  matrix)
inline

Assignment operator.

Definition at line 160 of file itkVariableSizeMatrix.h.

template<typename T>
const Self& itk::VariableSizeMatrix< T >::operator= ( const Self matrix)
inline

Assignment operator.

Definition at line 175 of file itkVariableSizeMatrix.h.

template<typename T >
bool itk::VariableSizeMatrix< T >::operator== ( const Self matrix) const
inline
template<typename T>
T* itk::VariableSizeMatrix< T >::operator[] ( unsigned int  i)
inline

Return a row of the matrix.

Definition at line 124 of file itkVariableSizeMatrix.h.

template<typename T>
const T* itk::VariableSizeMatrix< T >::operator[] ( unsigned int  i) const
inline

Return a row of the matrix.

Definition at line 130 of file itkVariableSizeMatrix.h.

template<typename T>
unsigned int itk::VariableSizeMatrix< T >::Rows ( ) const
inline
template<typename T>
void itk::VariableSizeMatrix< T >::SetIdentity ( void  )
inline
template<typename T>
bool itk::VariableSizeMatrix< T >::SetSize ( unsigned int  r,
unsigned int  c 
)
inline

Member Data Documentation

template<typename T>
InternalMatrixType itk::VariableSizeMatrix< T >::m_Matrix
private

The documentation for this class was generated from the following files:

Generated at Sat Aug 30 2014 18:08:56 for Orfeo Toolbox with doxygen 1.8.3.1