![]() |
Blaze 3.9
|
Iterator over the elements of the dense vector. More...
#include <SMatVarExpr.h>
Public Types | |
using | IteratorCategory = std::random_access_iterator_tag |
The iterator category. | |
using | ValueType = ElementType |
Type of the underlying elements. | |
using | PointerType = ElementType * |
Pointer return type. | |
using | ReferenceType = ElementType & |
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 elements. | |
using | pointer = PointerType |
Pointer return type. | |
using | reference = ReferenceType |
Reference return type. | |
using | difference_type = DifferenceType |
Difference between two iterators. | |
Public Member Functions | |
ConstIterator (Operand sm, size_t index) | |
Constructor for the ConstIterator class. More... | |
ConstIterator & | operator+= (size_t inc) |
Addition assignment operator. More... | |
ConstIterator & | operator-= (size_t dec) |
Subtraction assignment operator. More... | |
ConstIterator & | operator++ () |
Pre-increment operator. More... | |
const ConstIterator | operator++ (int) |
Post-increment operator. More... | |
ConstIterator & | operator-- () |
Pre-decrement operator. More... | |
const ConstIterator | operator-- (int) |
Post-decrement operator. More... | |
ReturnType | operator* () const |
Direct access to the element at the current iterator position. 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... | |
bool | operator< (const ConstIterator &rhs) const |
Less-than comparison between two ConstIterator objects. More... | |
bool | operator> (const ConstIterator &rhs) const |
Greater-than comparison between two ConstIterator objects. More... | |
bool | operator<= (const ConstIterator &rhs) const |
Less-than comparison between two ConstIterator objects. More... | |
bool | operator>= (const ConstIterator &rhs) const |
Greater-than comparison between two ConstIterator objects. More... | |
DifferenceType | operator- (const ConstIterator &rhs) const |
Calculating the number of elements between two iterators. More... | |
Private Attributes | |
Operand | sm_ |
Sparse matrix of the variance expression. | |
size_t | index_ |
Index to the current matrix row. | |
Iterator over the elements of the dense vector.
|
inline |
Constructor for the ConstIterator class.
sm | The sparse matrix operand of the variance expression. |
index | Index to the initial matrix row. |
|
inline |
Inequality comparison between two ConstIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Direct access to the element at the current iterator position.
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.
|
inline |
Addition assignment operator.
inc | The increment of the iterator. |
|
inline |
Calculating the number of elements between two iterators.
rhs | The right-hand side iterator. |
|
inline |
Pre-decrement operator.
|
inline |
Post-decrement operator.
|
inline |
Subtraction assignment operator.
dec | The decrement of the iterator. |
|
inline |
Less-than comparison between two ConstIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Less-than comparison between two ConstIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Equality comparison between two ConstIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Greater-than comparison between two ConstIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Greater-than comparison between two ConstIterator objects.
rhs | The right-hand side iterator. |