This class implements a dense matrix, storing the data as a vector of vectors of the given type, in the same manner as @ref{SparseMatrixBase}. It provides only row iterators.
|
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 |
Public Types |
typedef _Row | Row |
typedef Row::value_type | Element |
typedef std::vector< Row > | Rep |
Public Methods |
| DenseRowsMatrix (size_t m, size_t n) |
| DenseRowsMatrix (const DenseRowsMatrix &A) |
| ~DenseRowsMatrix () |
size_t | rowdim () const |
size_t | coldim () const |
|
template<class Field> std::istream & | read (std::istream &is, const Field &F) |
std::istream & | read (std::istream &is) |
template<class Field> std::ostream & | write (std::ostream &os, const Field &F) const |
std::ostream & | write (std::ostream &os) 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 |
|
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) |
DenseRowsMatrix & | transpose (DenseRowsMatrix &AT) const |
Protected Attributes |
Rep | _A |
size_t | _m |
size_t | _n |
Friends |
class | SparseMatrixWriteHelper< Element, Row > |
class | SparseMatrixReadWriteHelper< Element, Row > |