Registry / utility / sprs
library0.11.4rscratesunverified

A sparse matrix library for Rust, providing data structures and algorithms for sparse linear algebra.

# Cargo.toml [dependencies] sprs = "0.11.4"
INSTALL
IMPORT
SIG · SPRS
S
sprs
utilityrustv0.11.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CsMat
use sprs::CsMat;

Creates a compressed sparse row matrix (CsMat) with example data.

use sprs::CsMat; fn main() { let mat = CsMat::<f64>::new((3, 3), vec![0, 2, 4, 5], vec![0, 1, 0, 2, 1], vec![1.0, 2.0, 3.0, 4.0, 5.0]); println!("Sparse matrix created: {:?}", mat); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
sprs — cargo add sprs · libregistry