rust-blas
Rust bindings and wrappers for BLAS (Basic Linear Algebra Subprograms).
Overview
RBLAS wraps each external call in a trait with the same name (but capitalized).
This trait contains a single static method, of the same name. These traits are
generic over the four main types of numbers BLAS supports: f32, f64,
Complex32, and Complex64.
For example the functions cblas_saxpy, cblas_daxpy, cblas_caxypy, and
cblas_zaxpy are called with the function Axpy::axpy.
Additionally, RBLAS introduces a few traits to shorten calls to these BLAS
functions: Vector for types that implement vector-like characteristics and
Matrix for types that implement matrix-like characteristics. The Vector
trait is already implemented by Vec and [] types.
Installation
By default, the library links with blas dynamically. To link to an alternate
implementation, like OpenBLAS, use the environment variable CARGO_BLAS. If
you've already built the bindings, you may need to clean and build again.
export CARGO_BLAS=openblas
Example
extern crate rblas;
use Dot;
Sugared Example (Soon to be Deprecated)
extern crate rblas as blas;
use Mat;
use ;
use T;