CIMPL::SparseMatrix< T > Class Template Reference

Sparse 2-D Matrix class. Currently only element storage/access is supported. More...

#include <SparseMatrix.h>

List of all members.

Public Member Functions

 SparseMatrix (void)
 SparseMatrix (const int xdim, const int ydim)
 ~SparseMatrix (void)
const int Columns () const
const int Rows () const
const int XDim () const
const int YDim () const
int const NNZ (void) const
void SetValue (const int x, const int y, const T value)
GetValue (const int x, const int y)
operator() (const int i, const int j)

Protected Member Functions

bool AddCellXStart (matrixCell< T > *c)
bool AddCellYStart (matrixCell< T > *c)
GetCellXStart (const int x, const int y)
GetCellYStart (const int x, const int y)
bool DeleteCell (const int x, const int y)

Protected Attributes

matrixCellStart< T > * xDimStarts
matrixCellStart< T > * yDimStarts
int ndims
int * dims
int count


Detailed Description

template<class T>
class CIMPL::SparseMatrix< T >

Sparse 2-D Matrix class. Currently only element storage/access is supported.

Definition at line 88 of file SparseMatrix.h.


Constructor & Destructor Documentation

template<class T>
CIMPL::SparseMatrix< T >::SparseMatrix void   ) 
 

Definition at line 65 of file SparseMatrix.inl.

template<class T>
CIMPL::SparseMatrix< T >::SparseMatrix const int  xdim,
const int  ydim
 

Definition at line 84 of file SparseMatrix.inl.

template<class T>
CIMPL::SparseMatrix< T >::~SparseMatrix void   ) 
 

Definition at line 130 of file SparseMatrix.inl.


Member Function Documentation

template<class T>
bool CIMPL::SparseMatrix< T >::AddCellXStart matrixCell< T > *  c  )  [protected]
 

Definition at line 336 of file SparseMatrix.inl.

template<class T>
bool CIMPL::SparseMatrix< T >::AddCellYStart matrixCell< T > *  c  )  [protected]
 

Definition at line 307 of file SparseMatrix.inl.

template<class T>
const int CIMPL::SparseMatrix< T >::Columns  )  const [inline]
 

Definition at line 162 of file SparseMatrix.inl.

template<class T>
bool CIMPL::SparseMatrix< T >::DeleteCell const int  x,
const int  y
[protected]
 

Definition at line 407 of file SparseMatrix.inl.

template<class T>
T CIMPL::SparseMatrix< T >::GetCellXStart const int  x,
const int  y
[protected]
 

Definition at line 385 of file SparseMatrix.inl.

template<class T>
T CIMPL::SparseMatrix< T >::GetCellYStart const int  x,
const int  y
[protected]
 

Definition at line 364 of file SparseMatrix.inl.

template<class T>
T CIMPL::SparseMatrix< T >::GetValue const int  x,
const int  y
[inline]
 

Definition at line 255 of file SparseMatrix.inl.

template<class T>
const int CIMPL::SparseMatrix< T >::NNZ void   )  const [inline]
 

Definition at line 194 of file SparseMatrix.inl.

template<class T>
T CIMPL::SparseMatrix< T >::operator() const int  i,
const int  j
[inline]
 

Definition at line 280 of file SparseMatrix.inl.

template<class T>
const int CIMPL::SparseMatrix< T >::Rows  )  const [inline]
 

Definition at line 168 of file SparseMatrix.inl.

template<class T>
void CIMPL::SparseMatrix< T >::SetValue const int  x,
const int  y,
const T  value
[inline]
 

Definition at line 201 of file SparseMatrix.inl.

template<class T>
const int CIMPL::SparseMatrix< T >::XDim  )  const [inline]
 

Definition at line 175 of file SparseMatrix.inl.

template<class T>
const int CIMPL::SparseMatrix< T >::YDim  )  const [inline]
 

Definition at line 181 of file SparseMatrix.inl.


Member Data Documentation

template<class T>
int CIMPL::SparseMatrix< T >::count [protected]
 

Definition at line 95 of file SparseMatrix.h.

template<class T>
int* CIMPL::SparseMatrix< T >::dims [protected]
 

Definition at line 94 of file SparseMatrix.h.

template<class T>
int CIMPL::SparseMatrix< T >::ndims [protected]
 

Definition at line 93 of file SparseMatrix.h.

template<class T>
matrixCellStart<T>* CIMPL::SparseMatrix< T >::xDimStarts [protected]
 

Definition at line 91 of file SparseMatrix.h.

template<class T>
matrixCellStart<T>* CIMPL::SparseMatrix< T >::yDimStarts [protected]
 

Definition at line 92 of file SparseMatrix.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 20 08:43:52 2005 for CIMPL by  doxygen 1.3.9.1