![]() |
Iterator over the elements of the sparse submatrix. More...
#include <DenseSubmatrix.h>
Public Types | |
typedef std::iterator_traits < IteratorType > ::iterator_category | IteratorCategory |
The iterator category. | |
typedef std::iterator_traits < IteratorType >::value_type | ValueType |
Type of the underlying elements. | |
typedef std::iterator_traits < IteratorType >::pointer | PointerType |
Pointer return type. | |
typedef std::iterator_traits < IteratorType >::reference | ReferenceType |
Reference return type. | |
typedef std::iterator_traits < IteratorType > ::difference_type | DifferenceType |
Difference between two iterators. | |
typedef IteratorCategory | iterator_category |
The iterator category. | |
typedef ValueType | value_type |
Type of the underlying elements. | |
typedef PointerType | pointer |
Pointer return type. | |
typedef ReferenceType | reference |
Reference return type. | |
typedef DifferenceType | difference_type |
Difference between two iterators. | |
Public Member Functions | |
SubmatrixIterator (IteratorType iterator, IteratorType final, size_t rest, bool aligned) | |
Constructor for the SubmatrixIterator class. More... | |
SubmatrixIterator & | operator+= (size_t inc) |
Addition assignment operator. More... | |
SubmatrixIterator & | operator-= (size_t dec) |
Subtraction assignment operator. More... | |
SubmatrixIterator & | operator++ () |
Pre-increment operator. More... | |
const SubmatrixIterator | operator++ (int) |
Post-increment operator. More... | |
SubmatrixIterator & | operator-- () |
Pre-decrement operator. More... | |
const SubmatrixIterator | operator-- (int) |
Post-decrement operator. More... | |
ReferenceType | operator* () const |
Direct access to the element at the current iterator position. More... | |
IntrinsicType | load () const |
Aligned load of an intrinsic element of the dense submatrix. More... | |
IntrinsicType | loadu () const |
Unaligned load of an intrinsic element of the dense submatrix. More... | |
bool | operator== (const SubmatrixIterator &rhs) const |
Equality comparison between two SubmatrixIterator objects. More... | |
bool | operator!= (const SubmatrixIterator &rhs) const |
Inequality comparison between two SubmatrixIterator objects. More... | |
bool | operator< (const SubmatrixIterator &rhs) const |
Less-than comparison between two SubmatrixIterator objects. More... | |
bool | operator> (const SubmatrixIterator &rhs) const |
Greater-than comparison between two SubmatrixIterator objects. More... | |
bool | operator<= (const SubmatrixIterator &rhs) const |
Less-than comparison between two SubmatrixIterator objects. More... | |
bool | operator>= (const SubmatrixIterator &rhs) const |
Greater-than comparison between two SubmatrixIterator objects. More... | |
DifferenceType | operator- (const SubmatrixIterator &rhs) const |
Calculating the number of elements between two iterators. More... | |
Private Attributes | |
IteratorType | iterator_ |
Iterator to the current submatrix element. | |
IteratorType | final_ |
The final iterator for intrinsic operations. | |
size_t | rest_ |
The number of remaining elements beyond the final iterator. | |
bool | aligned_ |
Memory alignment flag. | |
Friends | |
const SubmatrixIterator | operator+ (const SubmatrixIterator &it, size_t inc) |
Addition between a SubmatrixIterator and an integral value. More... | |
const SubmatrixIterator | operator+ (size_t inc, const SubmatrixIterator &it) |
Addition between an integral value and a SubmatrixIterator. More... | |
const SubmatrixIterator | operator- (const SubmatrixIterator &it, size_t dec) |
Subtraction between a SubmatrixIterator and an integral value. More... | |
Iterator over the elements of the sparse submatrix.
|
inlineexplicit |
Constructor for the SubmatrixIterator class.
iterator | Iterator to the initial element. |
final | The final iterator for intrinsic operations. |
rest | The number of remaining elements beyond the final iterator. |
aligned | Memory alignment flag. |
|
inline |
Aligned load of an intrinsic element of the dense submatrix.
This function performs an aligned load of the current intrinsic element of the submatrix iterator. This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors.
|
inline |
Unaligned load of an intrinsic element of the dense submatrix.
This function performs an unaligned load of the current intrinsic element of the submatrix iterator. This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors.
|
inline |
Inequality comparison between two SubmatrixIterator 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 SubmatrixIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Less-than comparison between two SubmatrixIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Equality comparison between two SubmatrixIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Greater-than comparison between two SubmatrixIterator objects.
rhs | The right-hand side iterator. |
|
inline |
Greater-than comparison between two SubmatrixIterator objects.
rhs | The right-hand side iterator. |
|
friend |
Addition between a SubmatrixIterator and an integral value.
it | The iterator to be incremented. |
inc | The number of elements the iterator is incremented. |
|
friend |
Addition between an integral value and a SubmatrixIterator.
inc | The number of elements the iterator is incremented. |
it | The iterator to be incremented. |
|
friend |
Subtraction between a SubmatrixIterator and an integral value.
it | The iterator to be decremented. |
dec | The number of elements the iterator is decremented. |