|
Blaze 3.9
|
Iterator over the elements of the dense matrix generator expression. More...
#include <DMatGenExpr.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 | |
| BLAZE_DEVICE_CALLABLE | ConstIterator (size_t m, size_t n, OP op) |
| Constructor for the ConstIterator class. | |
| BLAZE_DEVICE_CALLABLE ConstIterator & | operator+= (size_t inc) |
| Addition assignment operator. | |
| BLAZE_DEVICE_CALLABLE ConstIterator & | operator-= (size_t dec) |
| Subtraction assignment operator. | |
| BLAZE_DEVICE_CALLABLE ConstIterator & | operator++ () |
| Pre-increment operator. | |
| BLAZE_DEVICE_CALLABLE const ConstIterator | operator++ (int) |
| Post-increment operator. | |
| BLAZE_DEVICE_CALLABLE ConstIterator & | operator-- () |
| Pre-decrement operator. | |
| BLAZE_DEVICE_CALLABLE const ConstIterator | operator-- (int) |
| Post-decrement operator. | |
| BLAZE_DEVICE_CALLABLE ReturnType | operator* () const |
| Direct access to the element at the current iterator position. | |
| BLAZE_DEVICE_CALLABLE bool | operator== (const ConstIterator &rhs) const noexcept |
| Equality comparison between two ConstIterator objects. | |
| BLAZE_DEVICE_CALLABLE bool | operator!= (const ConstIterator &rhs) const noexcept |
| Inequality comparison between two ConstIterator objects. | |
| BLAZE_DEVICE_CALLABLE bool | operator< (const ConstIterator &rhs) const noexcept |
| Less-than comparison between two ConstIterator objects. | |
| BLAZE_DEVICE_CALLABLE bool | operator> (const ConstIterator &rhs) const noexcept |
| Greater-than comparison between two ConstIterator objects. | |
| BLAZE_DEVICE_CALLABLE bool | operator<= (const ConstIterator &rhs) const noexcept |
| Less-than comparison between two ConstIterator objects. | |
| BLAZE_DEVICE_CALLABLE bool | operator>= (const ConstIterator &rhs) const noexcept |
| Greater-than comparison between two ConstIterator objects. | |
| BLAZE_DEVICE_CALLABLE DifferenceType | operator- (const ConstIterator &rhs) const noexcept |
| Calculating the number of elements between two iterators. | |
Private Attributes | |
| size_t | m_ |
| Row index of the current matrix element. | |
| size_t | n_ |
| Column index of the current matrix element. | |
| OP | op_ |
| The custom binary operation. | |
Iterator over the elements of the dense matrix generator expression.
|
inline |
Constructor for the ConstIterator class.
| m | Row index to the initial matrix element. |
| n | Column index to the initial matrix element. |
| op | The custom binary operation. |
|
inlinenoexcept |
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. |
|
inlinenoexcept |
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. |
|
inlinenoexcept |
Less-than comparison between two ConstIterator objects.
| rhs | The right-hand side iterator. |
|
inlinenoexcept |
Less-than comparison between two ConstIterator objects.
| rhs | The right-hand side iterator. |
|
inlinenoexcept |
Equality comparison between two ConstIterator objects.
| rhs | The right-hand side iterator. |
|
inlinenoexcept |
Greater-than comparison between two ConstIterator objects.
| rhs | The right-hand side iterator. |
|
inlinenoexcept |
Greater-than comparison between two ConstIterator objects.
| rhs | The right-hand side iterator. |