Skip to main content

Module sparse

Module sparse 

Source
Expand description

Sparse tensor support — COO, CSR, CSC formats.

703 lines. SparseCOO<T> (coordinate format: indices + values + shape) with from_dense, to_dense, nnz, density, add/mul (sparse×sparse and sparse×dense), matmul (spmm sparse × dense → dense), coalesce (sort + dedup), and transpose. SparseFormat enum tags COO/CSR/CSC variants.

§File

crates/axonml-tensor/src/sparse.rs

§Author

Andrew Jewell Sr. — AutomataNexus LLC ORCID: 0009-0005-2158-7060

§Updated

April 14, 2026 11:15 PM EST

§Disclaimer

Use at own risk. This software is provided “as is”, without warranty of any kind, express or implied. The author and AutomataNexus shall not be held liable for any damages arising from the use of this software.

Structs§

SparseCOO
Sparse tensor in COO (Coordinate) format (f32 only).
SparseCSR
Sparse tensor in CSR (Compressed Sparse Row) format.

Enums§

SparseFormat
Sparse tensor storage format.
SparseTensor
Unified sparse tensor interface supporting multiple formats.