Skip to main content

Module sparse

Module sparse 

Source
Expand description

N-dimensional sparse tensor in COO (coordinate) format.

Unlike crate::linalg::sparse::CooMatrix, which is a 2D sparse matrix for linear algebra, SparseTensor generalises to arbitrary dimensions while still supporting efficient 2D matrix operations (matmul, transpose).

Structs§

SparseTensor
An N-dimensional sparse tensor stored in COO (coordinate) format.