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