Public Member Functions | |
Constructors | |
InnerIterator () | |
InnerIterator (SparseMatrix< T, indexT, 1, columnMajor > &mat, uint32_t vec) | |
InnerIterator (SparseMatrix< T, indexT, 1, columnMajor >::Vector &vec) | |
Getters | |
indexT | getIndex () |
indexT | outerDim () |
indexT | row () |
indexT | col () |
T | value () |
void | coeff (T newValue) |
CSC Inner Iterator Class
The CSC Inner Iterator is a forward traversal iterator like the others in the IVSparse library. It's very low overhead and is used to traverse over the nonzeros of a single vector of a matrix or a vector on its own.
|
inline |
Default Iterator Constructor
Creates an empty iterator that can't be used on its own.
|
inline |
CSC Matrix InnerIterator Constructor
The main constructor for the Inner Iterator. Given a matrix the iterator will forward traverse over the given vector of the matrix. The traversal is sorted by index.
InnerIterator | ( | SparseMatrix< T, indexT, 1, columnMajor >::Vector & | vec | ) |
CSC Vector InnerIterator Constructor
Same as the previous constructor but for a single standalone vector. Can be used in the same way as the previous constructor.
indexT getIndex |
indexT outerDim |
indexT row |
indexT col |
T value |
void coeff | ( | T | newValue | ) |
Changes the value where the iterator is pointing.