[][src]Module matrixlab::iter

Iterators over sparse matricies

Structs

ElementsIter

An ElementsIter iterates over all nonzero values in a sparse matrix. This is much faster than a MatrixIter and should be preferred in most situations.

MatrixIter

MatrixIter iterates over a sparse matrix. This iteration happens in order, starting at the beginning of the first row and moving to the right and down. If an element exists in the sparse matrix at that location then it is returned, otherwise a zero element is returned. Note that it's probably exponential time to run this over the whole matrix as I've implemented it in a particularly poor way.