#sparse-matrix #matrix-operations #column #csr #row

sparsetools

2-D sparse matrix package for numeric data

7 releases

0.2.3 Aug 13, 2024
0.2.2 Apr 19, 2024
0.2.0 Sep 19, 2023
0.1.2 Sep 16, 2023

#546 in Math

Download history 7/week @ 2024-07-04 31/week @ 2024-07-25 8/week @ 2024-08-01 107/week @ 2024-08-08 35/week @ 2024-08-15 8/week @ 2024-08-22 13/week @ 2024-08-29 15/week @ 2024-09-12 10/week @ 2024-09-19 44/week @ 2024-09-26 28/week @ 2024-10-03 3/week @ 2024-10-10

76 downloads per month
Used in 4 crates

BSD-3-Clause

175KB
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

~2–4.5MB
~69K SLoC