Skip to content
Wrappers for LAPACK (Fortran)
Rust Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
.gitignore Switched to Cargo; implemented dgemm and dsyev Oct 5, 2014
.travis.yml Remove the linking functionality Nov 16, 2017
Cargo.toml
LICENSE.md Update the license Mar 5, 2018
README.md Make a cosmetic adjustment [ci skip] Nov 17, 2017

README.md

LAPACK Package Documentation Build

The package provides wrappers for LAPACK (Fortran).

The usage of the package is explained here.

Example

use lapack::*;

let n = 3;
let mut a = vec![3.0, 1.0, 1.0, 1.0, 3.0, 1.0, 1.0, 1.0, 3.0];
let mut w = vec![0.0; n as usize];
let mut work = vec![0.0; 4 * n as usize];
let lwork = 4 * n;
let mut info = 0;

unsafe {
    dsyev(b'V', b'U', n, &mut a, n, &mut w, &mut work, lwork, &mut info);
}

assert!(info == 0);
for (one, another) in w.iter().zip(&[2.0, 2.0, 5.0]) {
    assert!((one - another).abs() < 1e-14);
}

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.

You can’t perform that action at this time.