![]() |
Iterator over the elements of the dense matrix/sparse matrix Schur product expression. More...
#include <DMatSMatSchurExpr.h>
Public Types | |
using | Element = ValueIndexPair< ElementType > |
Element type of the sparse matrix expression. | |
using | RightIterator = ConstIterator_t< RemoveReference_t< RightOperand > > |
Iterator type of the sparse matrix expression. | |
using | IteratorCategory = std::forward_iterator_tag |
The iterator category. | |
using | ValueType = Element |
Type of the underlying pointers. | |
using | PointerType = ValueType * |
Pointer return type. | |
using | ReferenceType = ValueType & |
Reference return type. | |
using | DifferenceType = ptrdiff_t |
Difference between two iterators. | |
using | iterator_category = IteratorCategory |
The iterator category. | |
using | value_type = ValueType |
Type of the underlying pointers. | |
using | pointer = PointerType |
Pointer return type. | |
using | reference = ReferenceType |
Reference return type. | |
using | difference_type = DifferenceType |
Difference between two iterators. | |
Public Member Functions | |
ConstIterator (LeftOperand left, RightIterator right, size_t row) | |
Constructor for the ConstIterator class. More... | |
ConstIterator & | operator++ () |
Pre-increment operator. More... | |
const Element | operator* () const |
Direct access to the sparse matrix element at the current iterator position. More... | |
const ConstIterator * | operator-> () const |
Direct access to the sparse matrix element at the current iterator position. More... | |
ReturnType | value () const |
Access to the current value of the sparse element. More... | |
size_t | index () const |
Access to the current index of the sparse element. More... | |
bool | operator== (const ConstIterator &rhs) const |
Equality comparison between two ConstIterator objects. More... | |
bool | operator!= (const ConstIterator &rhs) const |
Inequality comparison between two ConstIterator objects. More... | |
DifferenceType | operator- (const ConstIterator &rhs) const |
Calculating the number of elements between two expression iterators. More... | |
Private Attributes | |
LeftOperand | left_ |
Left-hand side dense matrix expression. | |
RightIterator | right_ |
Iterator over the elements of the right-hand side sparse matrix expression. | |
size_t | row_ |
The row index of the iterator. | |
Iterator over the elements of the dense matrix/sparse matrix Schur product expression.
|
inline |
Constructor for the ConstIterator class.
left | Handle to the left-hand side dense matrix expression. |
right | Iterator to the current position in the right-hand side sparse matrix expression. |
row | The row index of the given iterator. |
|
inline |
Access to the current index of the sparse element.
|
inline |
Inequality comparison between two ConstIterator objects.
rhs | The right-hand side expression iterator. |
|
inline |
Direct access to the sparse matrix element at the current iterator position.
|
inline |
Pre-increment operator.
|
inline |
Calculating the number of elements between two expression iterators.
rhs | The right-hand side expression iterator. |
|
inline |
Direct access to the sparse matrix element at the current iterator position.
|
inline |
Equality comparison between two ConstIterator objects.
rhs | The right-hand side expression iterator. |
|
inline |
Access to the current value of the sparse element.