Skip to content

lazymatrix::dense_for_each_entry ​

LazyMatrix for Rust · 0.12.0

Source

rust
pub fn dense_for_each_entry<M, F>(
    matrix: &M,
    rows: std::ops::Range<usize>,
    columns: std::ops::Range<usize>,
    visitor: impl FnMut(usize, usize, F)
) -> Result<(), <M as MatrixErrorType>::Error> where M: MatrixRead<F> + MatrixErrorType + ?Sized, F: Scalar

Traverse a rectangle of dense indexed storage in column order.

Entries include zeros and nonfinite values. No workspace is allocated; empty rectangles perform no reads or callbacks.

Panics ​

Panics for reversed or out-of-bounds ranges before reading entries.

Released under the MIT and Apache 2.0 licenses.