Registry / utility / ndarray-linalg

ndarray-linalg

JSON →
library0.18.1rscratesunverified

Linear algebra package for rust-ndarray using LAPACK, providing matrix operations and decompositions.

# Cargo.toml [dependencies] ndarray-linalg = "0.18.1"
INSTALL
IMPORT
SIG · NDARRAY-LINALG
N
ndarray-linalg
utilityrustv0.18.1
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.

Solve
use ndarray_linalg::Solve;

Solves a linear system Ax = b using LAPACK.

use ndarray::array; use ndarray_linalg::Solve; fn main() -> Result<(), ndarray_linalg::error::LinalgError> { let a = array![[3.0, 1.0], [1.0, 2.0]]; let b = array![9.0, 8.0]; let x = a.solve(&b)?; println!("Solution: {:?}", x); Ok(())
Debug
Known issues
gotchaRequires a LAPACK implementation (e.g., OpenBLAS, Intel MKL) to be installed or linked.
fix
Enable the `openblas` or `intel-mkl` feature: `ndarray-linalg = { version = "0.18", features = ["openblas"] }`.
affects: >=0.12.0
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ndarray-linalg — cargo add ndarray-linalg · libregistry