10 releases (5 breaking)

Uses old Rust 2015

0.5.0 Apr 18, 2021
0.4.0 Apr 18, 2021
0.3.0 Feb 13, 2021
0.2.0 May 26, 2018
0.0.1 Nov 14, 2017

#1563 in Math

Download history 226/week @ 2024-03-11 289/week @ 2024-03-18 275/week @ 2024-03-25 312/week @ 2024-04-01 370/week @ 2024-04-08 295/week @ 2024-04-15 225/week @ 2024-04-22 225/week @ 2024-04-29 346/week @ 2024-05-06 246/week @ 2024-05-13 212/week @ 2024-05-20 181/week @ 2024-05-27 221/week @ 2024-06-03 176/week @ 2024-06-10 250/week @ 2024-06-17 245/week @ 2024-06-24

912 downloads per month
Used in 22 crates (6 directly)

Apache-2.0/MIT

1MB
63K SLoC

LAPACKE Package Documentation Build

The package provides wrappers for LAPACKE (C).

Architecture

Example

use lapacke::*;

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 info;

unsafe {
    info = dsyev(Layout::ColumnMajor, b'V', b'U', n, &mut a, n, &mut w);
}

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

Development

The code is generated via a Python script based on the content the lapacke-sys submodule. To re-generate, run the following commands:

./bin/generate.py > src/lapacke-sys.rs
rustfmt src/lapacke-sys.rs

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.

Dependencies

~1MB
~36K SLoC