#sparse-matrix #column #row #csr #data #package #graph

sparsetools

2-D sparse matrix package for numeric data

6 releases

0.2.2 Apr 19, 2024
0.2.1 Apr 12, 2024
0.2.0 Sep 19, 2023
0.1.2 Sep 16, 2023

#831 in Algorithms

Download history 8/week @ 2024-02-25 1/week @ 2024-03-03 4/week @ 2024-03-10 39/week @ 2024-03-24 9/week @ 2024-03-31 117/week @ 2024-04-07 139/week @ 2024-04-14 19/week @ 2024-04-21

284 downloads per month
Used in 2 crates

BSD-3-Clause

165KB
4.5K SLoC

sparsetools

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.

License

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

Dependencies

~1–1.7MB
~35K SLoC