Linear algebra package for Rust.
and more (See Cargo.toml).
For the sake of linking flexibility, you must provide LAPACKE implementation (as an extern crate
) yourself. Currently three LAPACKE implementations are supported and tested:
You should link a LAPACKE implementation to a final crate (like binary executable or dylib) only, not to a Rust library. Example:
Cargo.toml
:
[depencdencies] ndarray = "0.10" ndarray-linalg = "0.8" openblas-src = "0.5" # or another backend of your choice
main.rs
:
extern crate ndarray; extern crate ndarray_linalg; extern crate openblas_src; // or another backend of your choice
See examples directory.