Skip to content

xasmx/rust-la

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Linear algebra library for Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published