Linear algebra library for the Rust programming language.
See here.
To use this crate for stable Rust channel, add la as a dependency to your project's Cargo.toml:
[dependencies]
la = "0.2.0"
For nightly-build:
[dependencies]
la = { git = "https://github.com/xasmx/rust-la" }
Here is an example rust program using la to create matrices, perform basic matrix operations, and perform a Singular Value Decomposition.
#[macro_use] extern crate la;
use la::{Matrix, SVD};
fn main() {
let a = m!(1.0, 2.0; 3.0, 4.0; 5.0, 6.0);
let b = m!(7.0, 8.0, 9.0; 10.0, 11.0, 12.0);
let c = (a * b).t();
println!("{:?}", c);
let svd = SVD::new(&c);
println!("{:?}", svd.get_s());
}
- BLAS
- immutable and mutable implementations
- inverse, solve
- decompositions, including
- Cholesky
- LU
- QR
- Eigen
- SVD.
Only dense matrixes.