Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::VariableSizeMatrix< T > Class Template Reference
[Data Representation Objects]

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. More...

#include <itkVariableSizeMatrix.h>

List of all members.

Public Types

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

Public Member Functions

Array< T > operator * (const Array< T > &vector) const
Self operator * (const Self &matrix) const
vnl_matrix< T > operator * (const vnl_matrix< T > &matrix) const
void operator *= (const Self &matrix)
void operator *= (const vnl_matrix< T > &matrix)
vnl_vector< T > operator * (const vnl_vector< T > &matrix) const
void operator *= (const T &value)
void operator/= (const T &value)
T & operator() (unsigned int row, unsigned int col)
const T & operator() (unsigned int row, unsigned int col) const
T * operator[] (unsigned int i)
const T * operator[] (unsigned int i) const
InternalMatrixTypeGetVnlMatrix (void)
const InternalMatrixTypeGetVnlMatrix (void) const
void SetIdentity (void)
void Fill (const T &value)
const Selfoperator= (const vnl_matrix< T > &matrix)
const Selfoperator= (const Self &matrix)
vnl_matrix< T > GetInverse (void) const
vnl_matrix< T > GetTranspose (void) const
 VariableSizeMatrix ()
 VariableSizeMatrix (unsigned int rows, unsigned int cols)
 VariableSizeMatrix (const Self &matrix)
unsigned int Rows () const
unsigned int Cols () const
bool SetSize (unsigned int r, unsigned int c)
Self operator+ (const Self &matrix) const
const Selfoperator+= (const Self &matrix)
Self operator- (const Self &matrix) const
const Selfoperator-= (const Self &matrix)
Self operator * (const T &value)
Self operator/ (const T &value)
bool operator== (const Self &matrix) const
bool operator!= (const Self &matrix) const


Detailed Description

template<class 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 41 of file itkVariableSizeMatrix.h.


Member Typedef Documentation

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

Definition at line 48 of file itkVariableSizeMatrix.h.

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

Internal matrix type

Definition at line 51 of file itkVariableSizeMatrix.h.

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

Standard class typedefs.

Definition at line 44 of file itkVariableSizeMatrix.h.

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

Component value type

Definition at line 47 of file itkVariableSizeMatrix.h.


Constructor & Destructor Documentation

template<class T>
itk::VariableSizeMatrix< T >::VariableSizeMatrix  )  [inline]
 

Default constructor.

Definition at line 153 of file itkVariableSizeMatrix.h.

template<class T>
itk::VariableSizeMatrix< T >::VariableSizeMatrix unsigned int  rows,
unsigned int  cols
 

template<class T>
itk::VariableSizeMatrix< T >::VariableSizeMatrix const Self matrix  )  [inline]
 

Copy constructor.

Definition at line 158 of file itkVariableSizeMatrix.h.


Member Function Documentation

template<class T>
unsigned int itk::VariableSizeMatrix< T >::Cols  )  const [inline]
 

Return number of columns in the matrix

Definition at line 164 of file itkVariableSizeMatrix.h.

template<class T>
void itk::VariableSizeMatrix< T >::Fill const T &  value  )  [inline]
 

Fill the matrix with a value.

Definition at line 132 of file itkVariableSizeMatrix.h.

template<class T>
vnl_matrix<T> itk::VariableSizeMatrix< T >::GetInverse void   )  const [inline]
 

Return the inverse matrix.

template<class T>
vnl_matrix<T> itk::VariableSizeMatrix< T >::GetTranspose void   )  const [inline]
 

Return the transposed matrix.

template<class T>
const InternalMatrixType& itk::VariableSizeMatrix< T >::GetVnlMatrix void   )  const [inline]
 

Return the matrix.

Definition at line 124 of file itkVariableSizeMatrix.h.

template<class T>
InternalMatrixType& itk::VariableSizeMatrix< T >::GetVnlMatrix void   )  [inline]
 

Return the matrix.

Definition at line 120 of file itkVariableSizeMatrix.h.

template<class T>
Self itk::VariableSizeMatrix< T >::operator * const T &  value  )  [inline]
 

Matrix by scalar multiplication.

Definition at line 86 of file itkVariableSizeMatrix.h.

template<class T>
vnl_vector<T> itk::VariableSizeMatrix< T >::operator * const vnl_vector< T > &  matrix  )  const
 

Matrix by vnl_vector multiplication.

template<class T>
vnl_matrix<T> itk::VariableSizeMatrix< T >::operator * const vnl_matrix< T > &  matrix  )  const
 

Matrix by vnl_matrix multiplication.

template<class T>
Self itk::VariableSizeMatrix< T >::operator * const Self matrix  )  const
 

Matrix by Matrix multiplication.

template<class T>
Array<T> itk::VariableSizeMatrix< T >::operator * const Array< T > &  vector  )  const
 

Matrix by Vector multiplication.

template<class T>
void itk::VariableSizeMatrix< T >::operator *= const T &  value  )  [inline]
 

Matrix by scalar multiplication.

Definition at line 82 of file itkVariableSizeMatrix.h.

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

Matrix by vnl_matrix multiplication.

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

Matrix by Matrix multiplication.

template<class T>
bool itk::VariableSizeMatrix< T >::operator!= const Self matrix  )  const [inline]
 

Comparison operators.

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

Return an element of the matrix.

Definition at line 108 of file itkVariableSizeMatrix.h.

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

Return an element of the matrix.

Definition at line 104 of file itkVariableSizeMatrix.h.

template<class T>
Self itk::VariableSizeMatrix< T >::operator+ const Self matrix  )  const
 

Matrix addition.

template<class T>
const Self& itk::VariableSizeMatrix< T >::operator+= const Self matrix  ) 
 

Matrix addition.

template<class T>
Self itk::VariableSizeMatrix< T >::operator- const Self matrix  )  const
 

Matrix addition.

template<class T>
const Self& itk::VariableSizeMatrix< T >::operator-= const Self matrix  ) 
 

Matrix addition.

template<class T>
Self itk::VariableSizeMatrix< T >::operator/ const T &  value  )  [inline]
 

Matrix by scalar division.

Definition at line 97 of file itkVariableSizeMatrix.h.

template<class T>
void itk::VariableSizeMatrix< T >::operator/= const T &  value  )  [inline]
 

Matrix by scalar division.

Definition at line 93 of file itkVariableSizeMatrix.h.

template<class T>
const Self& itk::VariableSizeMatrix< T >::operator= const Self matrix  )  [inline]
 

Assignment operator.

template<class T>
const Self& itk::VariableSizeMatrix< T >::operator= const vnl_matrix< T > &  matrix  )  [inline]
 

Assignment operator.

template<class T>
bool itk::VariableSizeMatrix< T >::operator== const Self matrix  )  const [inline]
 

Comparison operators.

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

Return a row of the matrix.

Definition at line 116 of file itkVariableSizeMatrix.h.

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

Return a row of the matrix.

Definition at line 112 of file itkVariableSizeMatrix.h.

template<class T>
unsigned int itk::VariableSizeMatrix< T >::Rows  )  const [inline]
 

Return number of rows in the matrix

Definition at line 161 of file itkVariableSizeMatrix.h.

template<class T>
void itk::VariableSizeMatrix< T >::SetIdentity void   )  [inline]
 

Set the matrix to identity.

Definition at line 128 of file itkVariableSizeMatrix.h.

template<class T>
bool itk::VariableSizeMatrix< T >::SetSize unsigned int  r,
unsigned int  c
[inline]
 

Set the matrix size. Old data lost. Returns true if size changed.

Definition at line 167 of file itkVariableSizeMatrix.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:32:47 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000