| Crates.io | mdarray-linalg |
| lib.rs | mdarray-linalg |
| version | 0.1.2 |
| created_at | 2025-10-24 16:01:10.448446+00 |
| updated_at | 2025-11-05 20:59:18.14632+00 |
| description | Linear algebra operations for mdarray, with multiple exchangeable backends |
| homepage | |
| repository | https://github.com/grothesque/mdarray-linalg |
| max_upload_size | |
| id | 1898643 |
| size | 132,429 |
Efficient, flexible, and idiomatic linear algebra bindings (BLAS, LAPACK, etc.) to the Rust mdarray crate.
These crates are released on crates.io:
cargo add mdarray-linalg
and if you need a backend:
cargo add mdarray-linalg-blas
Important notes:
mdarray.openblas-src to avoid linkage errorsRUSTDOCFLAGS="-L native=/usr/lib -C link-arg=-lopenblas" cargo test --docIf you encounter linking issues with BLAS or LAPACK on Linux, one solution is to add a build.rs file and configure it to link the libraries manually. In your Cargo.toml, add:
[package]
build = "build.rs"
Then, create a build.rs file with the following content:
fn main() {
println!("cargo:rustc-link-lib=openblas");
println!("cargo:rustc-link-search=native=/usr/lib");
}
See docs.rs documentation for code examples and usage instructions.
Dual-licensed (Apache and MIT) to be compatible with the Rust project. See the file LICENSE.md in this directory.