- Notifications
You must be signed in to change notification settings - Fork19
Wrappers for LAPACK (Fortran)
License
NotificationsYou must be signed in to change notification settings
blas-lapack-rs/lapack
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The package provides wrappers forLAPACK (Fortran).
use lapack::*;let n =3;letmut a =vec![3.0,1.0,1.0,1.0,3.0,1.0,1.0,1.0,3.0];letmut w =vec![0.0; nasusize];letmut work =vec![0.0;4* nasusize];let lwork =4* n;letmut 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);}
The code is generated via a Python script based on the content thelapack-sys
submodule. To re-generate, run the following commands:
./bin/generate.py> src/lapack-sys.rsrustfmt src/lapack-sys.rs
Your contribution is highly appreciated. Do not hesitate to open an issue or apull request. Note that any contribution submitted for inclusion in the projectwill be licensed according to the terms given inLICENSE.md.
About
Wrappers for LAPACK (Fortran)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.