Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Wrappers for LAPACK (Fortran)

License

NotificationsYou must be signed in to change notification settings

blas-lapack-rs/lapack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The package provides wrappers forLAPACK (Fortran).

Example

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);}

Development

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

./bin/generate.py> src/lapack-sys.rsrustfmt src/lapack-sys.rs

Contribution

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

Stars

Watchers

Forks

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp