Matrix< T > Class Template Reference

#include <Matrix.h>

Inheritance diagram for Matrix< T >:

Inheritance graph
[legend]
Collaboration diagram for Matrix< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

unsigned cols () const
void init (const T &init_val)
 Matrix (const Matrix< T > &m)
 Matrix (unsigned nrows, unsigned ncols)
 Matrix ()
const T & operator() (unsigned i, unsigned j) const
T & operator() (unsigned i, unsigned j)
Matrix< T > & operator= (const Matrix< T > &m)
void print (std::ostream &os) const
void read (std::istream &is)
unsigned rows () const
 ~Matrix ()

Protected Attributes

T * data_
unsigned ncols_
unsigned nrows_

template<class T>
class Matrix< T >


Constructor & Destructor Documentation

template<class T>
Matrix< T >::Matrix  )  [inline]
 

Definition at line 60 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

template<class T>
Matrix< T >::Matrix unsigned  nrows,
unsigned  ncols
[inline]
 

Definition at line 98 of file Matrix.h.

template<class T>
Matrix< T >::~Matrix  )  [inline]
 

Definition at line 122 of file Matrix.h.

References Matrix< T >::data_.

template<class T>
Matrix< T >::Matrix const Matrix< T > &  m  )  [inline]
 

Definition at line 105 of file Matrix.h.


Member Function Documentation

template<class T>
unsigned Matrix< T >::cols  )  const [inline]
 

Definition at line 74 of file Matrix.h.

References Matrix< T >::ncols_.

Referenced by mems::TransformDistanceIdentity().

template<class T>
void Matrix< T >::init const T &  init_val  )  [inline]
 

Definition at line 129 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

Referenced by mems::BackboneIdentityMatrix(), mems::DistanceMatrix(), mems::IdentityMatrix(), mems::MatchIdentityMatrix(), and mems::SingleCopyDistanceMatrix().

template<class T>
const T & Matrix< T >::operator() unsigned  i,
unsigned  j
const [inline]
 

Definition at line 88 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

template<class T>
T & Matrix< T >::operator() unsigned  i,
unsigned  j
[inline]
 

Definition at line 80 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

template<class T>
Matrix< T > & Matrix< T >::operator= const Matrix< T > &  m  )  [inline]
 

Definition at line 110 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

Referenced by NumericMatrix< T >::operator=().

template<class T>
void Matrix< T >::print std::ostream &  os  )  const [inline]
 

Definition at line 137 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

template<class T>
void Matrix< T >::read std::istream &  is  )  [inline]
 

Definition at line 149 of file Matrix.h.

References Matrix< T >::data_, Matrix< T >::ncols_, and Matrix< T >::nrows_.

template<class T>
unsigned Matrix< T >::rows  )  const [inline]
 

Definition at line 68 of file Matrix.h.

References Matrix< T >::nrows_.

Referenced by mems::MuscleInterface::CreateTree(), and mems::TransformDistanceIdentity().


Member Data Documentation

template<class T>
T* Matrix< T >::data_ [protected]
 

Definition at line 55 of file Matrix.h.

Referenced by Matrix< T >::init(), Matrix< T >::Matrix(), Matrix< T >::operator()(), NumericMatrix< T >::operator+=(), NumericMatrix< T >::operator-=(), NumericMatrix< T >::operator/=(), Matrix< T >::operator=(), Matrix< T >::print(), Matrix< T >::read(), and Matrix< T >::~Matrix().

template<class T>
unsigned Matrix< T >::ncols_ [protected]
 

Definition at line 56 of file Matrix.h.

Referenced by Matrix< T >::cols(), Matrix< T >::init(), Matrix< T >::Matrix(), Matrix< T >::operator()(), NumericMatrix< T >::operator+=(), NumericMatrix< T >::operator-=(), NumericMatrix< T >::operator/=(), Matrix< T >::operator=(), Matrix< T >::print(), and Matrix< T >::read().

template<class T>
unsigned Matrix< T >::nrows_ [protected]
 

Definition at line 56 of file Matrix.h.

Referenced by Matrix< T >::init(), Matrix< T >::Matrix(), NumericMatrix< T >::operator *=(), Matrix< T >::operator()(), NumericMatrix< T >::operator+=(), NumericMatrix< T >::operator-=(), NumericMatrix< T >::operator/=(), Matrix< T >::operator=(), Matrix< T >::print(), Matrix< T >::read(), and Matrix< T >::rows().


The documentation for this class was generated from the following file:
Generated on Fri Mar 14 06:01:38 2008 for libMems by doxygen 1.3.6