Registry / other / nalgebra-sparse

nalgebra-sparse

JSON →
library0.11.0rscratesunverified

Sparse matrix computation based on nalgebra, providing sparse matrix types and operations.

# Cargo.toml [dependencies] nalgebra-sparse = "0.11.0"
INSTALL
IMPORT
SIG · NALGEBRA-SPARSE
N
nalgebra-sparse
otherrustv0.11.0
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.

CsrMatrix
use nalgebra_sparse::CsrMatrix;

Creates a 3x3 identity sparse matrix in CSR format.

use nalgebra_sparse::CsrMatrix; let matrix = CsrMatrix::<f64>::identity(3); println!("Matrix: {:?}", matrix);
Debug
Known issues
gotchaRequires the `sparse` feature of the `nalgebra` crate to be enabled; otherwise types are not available.
fix
Add `nalgebra = { version = "0.32", features = ["sparse"] }` to Cargo.toml.
affects: >=0.10.0
Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nalgebra-sparse — cargo add nalgebra-sparse · libregistry