![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
mappedmatrix.hh
Go to the documentation of this file.
51 MappedMatrixColIterator(const Map& map, typename Matrix::row_type::ConstIterator&& it, int row, int virtualRow, int virtualCol=0):
74 return (it_==other.it_) and (virtualRow_==other.virtualRow_) and (virtualCol_==other.virtualCol_);
146 : ConstIterator(*map_, (*matrix_)[row_].find(col/colFactor), row_, virtualRow_, col % colFactor);
225 RealRowIterator (const Map& map, const Matrix& matrix, typename Matrix::const_iterator originalRow)
241 return originalRow_.distanceTo(other.originalRow_) * rowFactor + other.virtualRow_ - virtualRow_;
Col col
A::size_type size_type
MappedMatrixColIterator(const Map &map, typename Matrix::row_type::ConstIterator &&it, int row, int virtualRow, int virtualCol=0)
Construct iterator that points at a specific column.
Definition mappedmatrix.hh:51
const Reference dereference() const
Definition mappedmatrix.hh:77
bool equals(const MappedMatrixColIterator &other) const
Definition mappedmatrix.hh:72
MappedMatrixColIterator< Map > ConstIterator
Definition mappedmatrix.hh:113
ConstIterator find(typename Matrix::size_type col) const
Get iterator to a particular column.
Definition mappedmatrix.hh:141
MappedMatrixRow(const Map &map, const Matrix &matrix, int row, int virtualRow)
Definition mappedmatrix.hh:115
size_type size() const
The number of nonzero blocks in this row.
Definition mappedmatrix.hh:134
auto end() const
Get const iterator to one beyond last row.
Definition mappedmatrix.hh:320
MappedMatrix(const Map &map, const Matrix &matrix)
Definition mappedmatrix.hh:308
RealRowIterator< const row_type > const_iterator
The const iterator over the matrix rows.
Definition mappedmatrix.hh:306
MappedMatrixColIterator< Map > ConstColIterator
Definition mappedmatrix.hh:213
row_type elementAt(std::ptrdiff_t diff) const
Definition mappedmatrix.hh:286
row_type dereference() const
dereferencing
Definition mappedmatrix.hh:294
void decrement()
prefix decrement
Definition mappedmatrix.hh:263
size_type index() const
return index
Definition mappedmatrix.hh:234
void advance(std::ptrdiff_t diff)
Definition mappedmatrix.hh:274
std::remove_const< T >::type ValueType
The unqualified value type.
Definition mappedmatrix.hh:222
std::ptrdiff_t distanceTo(const RealRowIterator< const ValueType > &other) const
Definition mappedmatrix.hh:239
void increment()
prefix increment
Definition mappedmatrix.hh:252
Matrix::const_iterator originalRow_
Definition mappedmatrix.hh:301
RealRowIterator(const Map &map, const Matrix &matrix, typename Matrix::const_iterator originalRow)
constructor
Definition mappedmatrix.hh:225
bool equals(const RealRowIterator< const ValueType > &other) const
Test two iterators for equality.
Definition mappedmatrix.hh:246
RealRowIterator()=default
Default constructor, does not initialize anything.
static size_type coldim(const Matrix &, size_type)
Definition mappedmatrix.hh:383
typename Matrix::size_type size_type
Definition mappedmatrix.hh:376
static size_type rowdim(const Matrix &, size_type)
Definition mappedmatrix.hh:378
static size_type coldim(const Matrix &A)
Definition mappedmatrix.hh:392
static size_type rowdim(const Matrix &A)
Definition mappedmatrix.hh:388
