![]() |
Mackey
V3.3
A C++ library for computing RO(G) graded homology
|
Iterator over nonzero entries of Eigen matrices. More...
#include <General.hpp>
Public Member Functions | |
| auto | value () |
| The entry of the matrix. More... | |
| auto | row () |
| The row index. More... | |
| auto | col () |
| The column index. More... | |
| IteratorNNZ & | operator++ () |
| Increase iterator. More... | |
| operator bool () | |
| Is 1 if iterator is valid, 0 if nonvalid. More... | |
| IteratorNNZ (const T &matrix, storage row_start, storage col_start) | |
| Constructor given matrix and block (lower right corner) More... | |
| IteratorNNZ (const T &matrix, storage start) | |
| Constructor given matrix and symmetric block. More... | |
Iterator over nonzero entries of Eigen matrices.
| T | The type of the Eigen matrix |
| row_only | Set to 1 to iterate only through the entries in the given row (so the block is a row) |
| col_only | Set to 1 to iterate only through the entries in the given column (so the block is a column) |
| IteratorNNZ | ( | const T & | matrix, |
| storage | row_start, | ||
| storage | col_start | ||
| ) |
Constructor given matrix and block (lower right corner)
| matrix | The matrix to iterate through |
| row_start | The starting row of the block: we only visit nonzero entries matrix(i,j) with i>=row_start |
| col_start | The starting column of the block: we only visit nonzero entries matrix(i,j) with j>=col_start |
| IteratorNNZ | ( | const T & | matrix, |
| storage | start | ||
| ) |
Constructor given matrix and symmetric block.
| matrix | The matrix to iterate through |
| start | The starting row+column of the block: we only visit nonzero entries matrix(i,j) with i,j>=start |
| auto value | ( | ) |
The entry of the matrix.
| auto row | ( | ) |
The row index.
| auto col | ( | ) |
The column index.
| IteratorNNZ& operator++ | ( | ) |
Increase iterator.
| operator bool | ( | ) |
Is 1 if iterator is valid, 0 if nonvalid.