#include <sparse.h>
Inheritance diagram for SparseMatrix:
This is a generic black box for a sparse matrix. It inherits LinBox::SparseMatrixBase, which implements all of the underlying accessors and iterators.
Public Types | |
typedef _Field | Field |
typedef Field::Element | Element |
typedef SparseMatrixBase< typename Field::Element, _Row >::Row | Row |
typedef SparseMatrix< _Field, _Row > | Self_t |
typedef SparseMatrixBase< typename Field::Element, _Row >::RawIterator | RawIterator |
typedef SparseMatrixBase< typename Field::Element, _Row >::RawIndexedIterator | RawIndexedIterator |
Public Methods | |
SparseMatrix (const Field &F, size_t m=0, size_t n=0) | |
template<class VectStream> | SparseMatrix (const Field &F, VectStream &stream) |
SparseMatrix (const SparseMatrix< Field, Row > &B) | |
~SparseMatrix () | |
template<class OutVector, class InVector> OutVector & | apply (OutVector &y, const InVector &x) const |
template<class OutVector, class InVector> OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
size_t | rowdim () const |
size_t | coldim () const |
std::istream & | read (std::istream &is, FileFormatTag format=FORMAT_DETECT) |
std::ostream & | write (std::ostream &os, FileFormatTag format=FORMAT_PRETTY) const |
const Field & | field () const |
Public Attributes | |
FileFormatTag | Format |
|
Reimplemented from SparseMatrixBase< _Field::Element, _Row >. |
|
Reimplemented in SparseIntegerMatrix. |
|
|
|
|
|
Reimplemented from SparseMatrixBase< _Field::Element, _Row >. Reimplemented in SparseIntegerMatrix. |
|
|
|
Constructor. Builds a zero m x n matrix Note: the copy constructor and operator= will work as intended because of STL's container design
|
|
Constructor from a vector stream
|
|
Copy constructor |
|
Destructor. |
|
Matrix-vector product y = A x.
|
|
Transpose matrix-vector product y = A^T x.
|
|
Retreive column dimensions of Sparsemat matrix.
Reimplemented from SparseMatrixBase< _Field::Element, _Row >. |
|
Access to the base field |
|
Read the matrix from a stream in the given format
Reimplemented from SparseMatrixBase< _Field::Element, _Row >. |
|
Retreive row dimensions of Sparsemat matrix.
Reimplemented from SparseMatrixBase< _Field::Element, _Row >. |
|
Write the matrix to a stream in the given format
Reimplemented from SparseMatrixBase< _Field::Element, _Row >. |
|
|