Skip to content

xasmx/rust-la

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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