LAPACK
The package provides an interface to the Linear Algebra PACKage.
Documentation
Configuration
The underlying implementation of LAPACK to compile, if needed, and link to can be chosen among the following options:
- Apple’s Accelerate framework (macOS only),
- Netlib’s reference implementation, and
- OpenBLAS (default).
An implementation can be chosen using the package’s features as follows:
[]
# Apple’s Accelerate framework
= { = "0.11", = false, = ["accelerate"] }
# Netlib’s reference implementation
= { = "0.11", = false, = ["netlib"] }
# OpenBLAS
= { = "0.11", = false, = ["openblas"] }
# OpenBLAS
= { = "0.11" }
Example (C)
use *;
let n = 3;
let mut a = vec!;
let mut w = vec!;
let info = dsyev;
assert_eq!;
for in w.iter.zip
Example (Fortran)
use *;
let n = 3;
let mut a = vec!;
let mut w = vec!;
let mut work = vec!;
let lwork = 4 * n;
let mut info = 0;
dsyev;
assert_eq!;
for in w.iter.zip
Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.