An InnerIterator allows to loop over the element of any matrix expression.
More...
#include <CoreIterators.h>
template<typename XprType>
class Eigen::InnerIterator< XprType >
An InnerIterator allows to loop over the element of any matrix expression.
- Warning
- To be used with care because an evaluator is constructed every time an InnerIterator iterator is constructed.
TODO: add a usage example
§ col()
template<typename XprType >
- Returns
- the column index of the current coefficient.
§ index()
template<typename XprType >
- Returns
- the column or row index of the current coefficient.
§ operator bool()
template<typename XprType >
- Returns
true
if the iterator *this
still references a valid coefficient.
§ operator++()
template<typename XprType >
Increment the iterator *this
to the next non-zero coefficient.
Explicit zeros are not skipped over. To skip explicit zeros, see class SparseView
§ row()
template<typename XprType >
- Returns
- the row index of the current coefficient.
§ value()
template<typename XprType >
- Returns
- the value of the current coefficient.
The documentation for this class was generated from the following file: