|
Columns of rows iterator |
The columns of row iterator gives each of the rows of the matrix in ascending order. Dereferencing the iterator yields a row vector in sparse sequence format
|
typedef Rep::iterator | RowIterator |
typedef Rep::const_iterator | ConstRowIterator |
RowIterator | rowBegin () |
RowIterator | rowEnd () |
ConstRowIterator | rowBegin () const |
ConstRowIterator | rowEnd () const |
Index iterator |
The index iterator gives the row, column indices of all matrix elements in the same order as the raw iterator above. Its value type is an STL pair with the row and column indices, starting at 0, in the first and second positions, respectively.
|
RawIndexedIterator | rawIndexedBegin () |
RawIndexedIterator | rawIndexedEnd () |
ConstRawIndexedIterator | rawIndexedBegin () const |
ConstRawIndexedIterator | rawIndexedEnd () const |
Row & | getRow (size_t i) |
Row & | operator[] (size_t i) |
ConstRow & | operator[] (size_t i) const |
template<class Vector> Vector & | columnDensity (Vector &v) const |
SparseMatrixBase & | transpose (SparseMatrixBase &AT) const |
Rep | _A |
size_t | _m |
size_t | _n |
class | SparseMatrixWriteHelper< Element, Row > |
class | SparseMatrixReadWriteHelper< Element, Row > |
Public Types |
typedef _Element | Element |
typedef _Row | Row |
typedef const Row | ConstRow |
typedef std::vector< Row > | Rep |
Public Methods |
| SparseMatrixBase (size_t m, size_t n) |
| SparseMatrixBase (const SparseMatrixBase< Element, Row, Trait > &A) |
| ~SparseMatrixBase () |
size_t | rowdim () const |
size_t | coldim () const |
template<class Field> std::istream & | read (std::istream &is, const Field &F, FileFormatTag format=FORMAT_DETECT) |
std::istream & | read (std::istream &is, FileFormatTag format=FORMAT_DETECT) |
template<class Field> std::ostream & | write (std::ostream &os, const Field &F, FileFormatTag format=FORMAT_PRETTY) const |
std::ostream & | write (std::ostream &os, FileFormatTag format=FORMAT_PRETTY) const |
void | setEntry (size_t i, size_t j, const Element &value) |
Element & | refEntry (size_t i, size_t j) |
const Element & | getEntry (size_t i, size_t j) const |
Element & | getEntry (Element &x, size_t i, size_t j) const |
|
The raw iterator is a method for accessing all nonzero entries in the matrix in some unspecified order. This can be used, e.g. to reduce all matrix entries modulo a prime before passing the matrix into an algorithm.
|
RawIterator | rawBegin () |
RawIterator | rawEnd () |
ConstRawIterator | rawBegin () const |
ConstRawIterator | rawEnd () const |