Expand description
CSR (Compressed Sparse Row) sparse layout element lookup.
Implements element lookup from docs/spec/layouts/csr.md: within a row, the stored
column indices are strictly increasing, so a non-zero is found by binary-searching the
row’s slice of col_indices. Mirrors the standalone-function API validated by
super::csf::element_offset.
Functions§
- element_
offset - Looks up the storage offset (
values/col_indicesbuffer index) of logical index(row, col)in a CSR matrix, or returnsNoneif the element is a structural zero.