Crates.io | rulinalg |
lib.rs | rulinalg |
version | 0.4.2 |
source | src |
created_at | 2016-07-08 21:49:00.240579 |
updated_at | 2017-02-17 20:35:45.526634 |
description | A linear algebra library. |
homepage | |
repository | https://github.com/AtheMathmo/rulinalg |
max_upload_size | |
id | 5615 |
size | 517,818 |
The crate is currently on version 0.4.2.
Read the API Documentation to learn more.
Rulinalg is a linear algebra library written in Rust that doesn't require heavy external dependencies.
The goal of rulinalg is to provide efficient implementations of common linear algebra techniques in Rust.
Rulinalg was initially a part of rusty-machine, a machine learning library in Rust.
This project is currently looking for contributors of all capacities!
This project is implemented using Rust.
Currently the library does not make use of any external dependencies - though hopefully we will have BLAS/LAPACK bindings soon.
The library usage is described well in the API documentation - including example code.
The library is most easily used with cargo. Simply include the following in your Cargo.toml file:
[dependencies]
rulinalg="0.4.2"
And then import the library using:
extern crate rulinalg;
Then import the modules and you're done!
use rulinalg::matrix::Matrix;
// Create a 2x2 matrix:
let a = Matrix::new(2, 2, vec![
1.0, 2.0,
3.0, 4.0,
]);
// Create a 2x3 matrix:
let b = Matrix::new(2, 3, vec![
1.0, 2.0, 3.0,
4.0, 5.0, 6.0,
]);
let c = &a * &b; // Matrix product of a and b
// [
9.0, 12.0, 15.0,
19.0, 26.0, 33.0,
// ]
More detailed coverage can be found in the API documentation.