17 releases (4 breaking)

Uses old Rust 2015

0.4.2 Feb 17, 2017
0.4.1 Dec 29, 2016
0.3.7 Nov 17, 2016
0.2.2 Jul 29, 2016

⚠️ Issues reported

#10 in #linalg

Download history 1214/week @ 2024-03-14 1519/week @ 2024-03-21 1987/week @ 2024-03-28 1447/week @ 2024-04-04 1577/week @ 2024-04-11 1496/week @ 2024-04-18 1300/week @ 2024-04-25 1095/week @ 2024-05-02 1218/week @ 2024-05-09 1352/week @ 2024-05-16 1246/week @ 2024-05-23 1360/week @ 2024-05-30 1231/week @ 2024-06-06 1285/week @ 2024-06-13 1421/week @ 2024-06-20 1067/week @ 2024-06-27

5,227 downloads per month
Used in 81 crates (14 directly)

MIT license

480KB
10K SLoC

rulinalg

Build Status

The crate is currently on version 0.4.2.

Read the API Documentation to learn more.


Summary

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.

Contributing

This project is currently looking for contributors of all capacities!


Implementation

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.


Usage

The library usage is described well in the API documentation - including example code.

Installation

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.

Dependencies

~360–730KB
~11K SLoC