Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blas-lapack-rs/lapack
Wrappers for LAPACK (Fortran)
https://github.com/blas-lapack-rs/lapack
linear-algebra science wrappers
Last synced: 3 months ago
JSON representation
Wrappers for LAPACK (Fortran)
- Host: GitHub
- URL: https://github.com/blas-lapack-rs/lapack
- Owner: blas-lapack-rs
- License: other
- Created: 2014-10-06T11:57:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T12:25:36.000Z (over 3 years ago)
- Last Synced: 2024-05-23T02:34:45.186Z (8 months ago)
- Topics: linear-algebra, science, wrappers
- Language: Rust
- Homepage:
- Size: 1.25 MB
- Stars: 80
- Watchers: 8
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-rust-cn - stainless-steel/lapack - ci.org/blas-lapack-rs/lapack.svg?branch=master">](https://travis-ci.org/blas-lapack-rs/lapack) (Libraries / Computation)
- awesome-rust - stainless-steel/lapack - ci.org/blas-lapack-rs/lapack.svg?branch=master">](https://travis-ci.org/blas-lapack-rs/lapack) (Libraries / Computation)
- awesome-rust - stainless-steel/lapack
- awesome-rust-cn - stainless-steel/lapack
- awesome-rust-zh - stainless-steel/lapack - LAPACK 绑定 [<img src="https://api.travis-ci.org/blas-lapack-rs/lapack.svg?branch=master">](https://travis-ci.org/blas-lapack-rs/lapack) (库 / 计算)
- awesome-rust - stainless-steel/lapack - LAPACK bindings (Libraries / Computation)
- awesome-rust - stainless-steel/lapack - ci.org/blas-lapack-rs/lapack.svg?branch=master">](https://travis-ci.org/blas-lapack-rs/lapack) (库 Libraries / 计算 Computation)
- fucking-awesome-rust - stainless-steel/lapack - LAPACK bindings (Libraries / Computation)
- fucking-awesome-rust - stainless-steel/lapack - LAPACK bindings (Libraries / Computation)
README
# LAPACK [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]
The package provides wrappers for [LAPACK] (Fortran).
## [Architecture]
## Example
```rust
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);
}
```## Development
The code is generated via a Python script based on the content the `lapack-sys`
submodule. To re-generate, run the following commands:```sh
./bin/generate.py > src/lapack-sys.rs
rustfmt src/lapack-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](LICENSE.md).[architecture]: https://blas-lapack-rs.github.io/architecture
[lapack]: https://en.wikipedia.org/wiki/LAPACK[build-img]: https://travis-ci.org/blas-lapack-rs/lapack.svg?branch=master
[build-url]: https://travis-ci.org/blas-lapack-rs/lapack
[documentation-img]: https://docs.rs/lapack/badge.svg
[documentation-url]: https://docs.rs/lapack
[package-img]: https://img.shields.io/crates/v/lapack.svg
[package-url]: https://crates.io/crates/lapack