Classes | |
class | Accessor |
class | ExcInvalidIndexWithinRow |
Public Member Functions | |
const_iterator (const SparseMatrix *matrix, const unsigned int row, const unsigned int index) | |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const Accessor & | operator* () const |
const Accessor * | operator-> () const |
bool | operator== (const const_iterator &) const |
bool | operator!= (const const_iterator &) const |
bool | operator< (const const_iterator &) const |
Private Attributes | |
Accessor | accessor |
Note that Trilinos stores the elements within each row in ascending order. This is opposed to the deal.II sparse matrix style where the diagonal element (if it exists) is stored before all other values, and the PETSc sparse matrices, where one can't guarantee a certain order of the elements.
TrilinosWrappers::MatrixIterators::const_iterator::const_iterator | ( | const SparseMatrix * | matrix, | |
const unsigned int | row, | |||
const unsigned int | index | |||
) |
Constructor. Create an iterator into the matrix matrix
for the given row and the index within it.
const_iterator& TrilinosWrappers::MatrixIterators::const_iterator::operator++ | ( | ) |
Prefix increment.
const_iterator TrilinosWrappers::MatrixIterators::const_iterator::operator++ | ( | int | ) |
Postfix increment.
const Accessor& TrilinosWrappers::MatrixIterators::const_iterator::operator* | ( | ) | const |
Dereferencing operator.
const Accessor* TrilinosWrappers::MatrixIterators::const_iterator::operator-> | ( | ) | const |
Dereferencing operator.
bool TrilinosWrappers::MatrixIterators::const_iterator::operator== | ( | const const_iterator & | ) | const |
Comparison. True, if both iterators point to the same matrix position.
bool TrilinosWrappers::MatrixIterators::const_iterator::operator!= | ( | const const_iterator & | ) | const |
Inverse of ==
.
bool TrilinosWrappers::MatrixIterators::const_iterator::operator< | ( | const const_iterator & | ) | const |
Comparison operator. Result is true if either the first row number is smaller or if the row numbers are equal and the first index is smaller.
Store an object of the accessor class.