#csr #let #zip #component #dense-vectors


2-D sparse matrix package for numeric data

4 releases

new 0.2.0 Sep 19, 2023
0.1.2 Sep 16, 2023
0.1.1 Sep 16, 2023
0.1.0 Sep 15, 2023

#155 in Compression

Download history 10/week @ 2023-09-09 75/week @ 2023-09-16

85 downloads per month
Used in iec60909


4.5K SLoC


2-D sparse matrix crate for numeric data.

The operations supported by SciPy sparse matrices are implemented using functions written in C++/Cython. This crate contains translations of those functions to Rust. Sparse matrix types with methods that wrap the functions are provided in submodules:

  • CSR (Compressed Sparse Row format)
  • CSC (Compressed Sparse Column format)
  • Coo (Coordinate format, aka IJV or triplet format)
  • DoK (Dictionary of Keys, backed by HashMap)

Some compressed sparse graph routines from SciPy are also included.


The source code is distributed under the same BSD 3-clause license (LICENSE or https://opensource.org/license/bsd-3-clause/) as SciPy.


~35K SLoC