![]() |
Blaze
3.6
|
Iterator over the elements of the identity matrix. More...
#include <IdentityMatrix.h>
Public Types | |
using | Element = ValueIndexPair< Type > |
Element type of the identity matrix. | |
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 | |
constexpr | ConstIterator () noexcept |
Default constructor for the ConstIterator class. | |
constexpr | ConstIterator (size_t index) noexcept |
Constructor for the ConstIterator class. More... | |
constexpr ConstIterator & | operator++ () noexcept |
Pre-increment operator. More... | |
constexpr ConstIterator | operator++ (int) noexcept |
Post-increment operator. More... | |
constexpr const Element | operator * () const noexcept |
Direct access to the sparse matrix element at the current iterator position. More... | |
constexpr const ConstIterator * | operator-> () const noexcept |
Direct access to the sparse matrix element at the current iterator position. More... | |
constexpr Type | value () const noexcept |
Access to the current value of the sparse element. More... | |
constexpr size_t | index () const noexcept |
Access to the current index of the sparse element. More... | |
constexpr bool | operator== (const ConstIterator &rhs) const noexcept |
Equality comparison between two ConstIterator objects. More... | |
constexpr bool | operator!= (const ConstIterator &rhs) const noexcept |
Inequality comparison between two ConstIterator objects. More... | |
constexpr DifferenceType | operator- (const ConstIterator &rhs) const noexcept |
Calculating the number of elements between two ConstIterator objects. More... | |
Private Attributes | |
size_t | index_ |
Index to the current identity matrix element. | |
Iterator over the elements of the identity matrix.
|
inlinenoexcept |
Constructor for the ConstIterator class.
index | Index to the initial matrix element. |
|
inlinenoexcept |
Access to the current index of the sparse element.
|
inlinenoexcept |
Direct access to the sparse matrix element at the current iterator position.
|
inlinenoexcept |
Inequality comparison between two ConstIterator objects.
rhs | The right-hand side ConstIterator object. |
|
inlinenoexcept |
Pre-increment operator.
|
inlinenoexcept |
Post-increment operator.
|
inlinenoexcept |
Calculating the number of elements between two ConstIterator objects.
rhs | The right-hand side ConstIterator object. |
|
inlinenoexcept |
Direct access to the sparse matrix element at the current iterator position.
|
inlinenoexcept |
Equality comparison between two ConstIterator objects.
rhs | The right-hand side ConstIterator object. |
|
inlinenoexcept |
Access to the current value of the sparse element.