Linear algebra library for Rust
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
.gitignore
.travis.yml
Cargo.toml
LICENSE
Makefile
README.md

README.md

rust-la

Build Status

Linear algebra library for the Rust programming language.

Documentation

See here.

Usage

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" }

Example

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

Features

  • BLAS
  • immutable and mutable implementations
  • inverse, solve
  • decompositions, including
    • Cholesky
    • LU
    • QR
    • Eigen
    • SVD.

Only dense matrixes.