Skip to main content

Module sparse

Module sparse 

Source
Expand description

Coordinate-list sparse matrix over a Semiring.

v1 uses the simple, codec-friendly coordinate-list (COO) form. Duplicate coordinates are merged by semiring add during canonicalize, which also drops zero entries and sorts by (row, col). CSR/CSC may be added later as internal acceleration without changing this public contract.

Structsยง

SparseEntry
A single non-default entry of a sparse matrix.
SparseMatrix
A coordinate-list sparse matrix.