Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SparseMatrix< T > Class Template Reference
Inheritance diagram for SparseMatrix< T >:
SparseSymmetricMatrix< T >

Public Member Functions

 Pointer (int) rowSizes
 
 Pointer (Pointer(MatrixEntry< T >)) m_ppElements
 
 Pointer (MatrixEntry< T >) operator[](int idx)
 
 ConstPointer (MatrixEntry< T >) operator[](int idx) const
 
 SparseMatrix (int rows)
 
 SparseMatrix (int rows, int maxEntriesPerRow)
 
void Resize (int rows)
 
void Resize (int rows, int maxEntriesPerRow)
 
void SetRowSize (int row, int count)
 
int Entries (void) const
 
 SparseMatrix (const SparseMatrix &M)
 
void SetZero ()
 
void SetIdentity ()
 
SparseMatrix< T > & operator= (const SparseMatrix< T > &M)
 
SparseMatrix< T > operator* (const T &V) const
 
SparseMatrix< T > & operator*= (const T &V)
 
SparseMatrix< T > operator* (const SparseMatrix< T > &M) const
 
SparseMatrix< T > Multiply (const SparseMatrix< T > &M) const
 
SparseMatrix< T > MultiplyTranspose (const SparseMatrix< T > &Mt) const
 
template<class T2 >
PoissonVector< T2 > operator* (const PoissonVector< T2 > &V) const
 
template<class T2 >
PoissonVector< T2 > Multiply (const PoissonVector< T2 > &V) const
 
template<class T2 >
void Multiply (const PoissonVector< T2 > &In, PoissonVector< T2 > &Out, int threads=1) const
 
SparseMatrix< T > Transpose () const
 
bool write (FILE *fp) const
 
bool write (const char *fileName) const
 
bool read (FILE *fp)
 
bool read (const char *fileName)
 

Static Public Member Functions

static int Solve (const SparseMatrix< T > &M, const PoissonVector< T > &b, int iters, PoissonVector< T > &solution, const T eps=1e-8)
 
template<class T2 >
static int SolveSymmetric (const SparseMatrix< T > &M, const PoissonVector< T2 > &b, int iters, PoissonVector< T2 > &solution, const T2 eps=1e-8, int reset=1, int threads=1)
 

Public Attributes

int rows
 

Private Attributes

bool _contiguous
 
int _maxEntriesPerRow
 

Detailed Description

template<class T>
class SparseMatrix< T >

Definition at line 45 of file SparseMatrix.h.


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