BLAS
The package provides an interface to the Basic Linear Algebra Subprograms.
Configuration
The underlying implementation of BLAS to compile, if needed, and link to can be chosen among the following options:
- Apple’s Accelerate framework (macOS only),
- Netlib’s reference implementation, and
- OpenBLAS (default).
An implementation can be chosen using the package’s features as follows:
[]
# Apple’s Accelerate framework
= { = "0.16", = false, = ["accelerate"] }
# Netlib’s reference implementation
= { = "0.16", = false, = ["netlib"] }
# OpenBLAS
= { = "0.16", = false, = ["openblas"] }
# OpenBLAS
= { = "0.16" }
Example (C)
use *;
let = ;
let a = vec!;
let b = vec!;
let mut c = vec!;
unsafe
assert_eq!;
Example (Fortran)
use *;
let = ;
let a = vec!;
let b = vec!;
let mut c = vec!;
unsafe
assert_eq!;
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.