NGSolve
4.9
|
A general, sparse matrix. More...
#include <sparsematrix.hpp>
Public Types | |
typedef mat_traits< TM >::TSCAL | TSCAL |
Public Member Functions | |
SparseMatrixTM (int as, int max_elsperrow) | |
SparseMatrixTM (const Array< int > &elsperrow, int awidth) | |
SparseMatrixTM (int size, const Table< int > &rowelements, const Table< int > &colelements, bool symmetric) | |
SparseMatrixTM (const MatrixGraph &agraph, bool stealgraph) | |
SparseMatrixTM (const SparseMatrixTM &amat) | |
int | Height () const |
inline function VHeight | |
int | Width () const |
inline function VWidth | |
virtual int | VHeight () const |
virtual function must be overloaded | |
virtual int | VWidth () const |
virtual function must be overloaded | |
TM & | operator[] (int i) |
const TM & | operator[] (int i) const |
TM & | operator() (int row, int col) |
const TM & | operator() (int row, int col) const |
FlatVector< TM > | GetRowValues (int i) const |
virtual void | AddElementMatrix (const FlatArray< int > &dnums1, const FlatArray< int > &dnums2, const FlatMatrix< TSCAL > &elmat) |
virtual BaseVector & | AsVector () |
linear access of matrix memory | |
virtual const BaseVector & | AsVector () const |
linear access of matrix memory | |
virtual ostream & | Print (ostream &ost) const |
virtual void | MemoryUsage (Array< MemoryUsageStruct * > &mu) const |
Protected Attributes | |
Array< TM, size_t > | data |
VFlatVector< typename mat_traits< TM >::TSCAL > | asvec |
TM | nul |
A general, sparse matrix.