#linear-algebra #matrix #algebra #linear #math

matrix-oxide

Simple, and Lightweight Linear Algebra Library For Rust

3 releases

0.1.2 Feb 20, 2025
0.1.1 Jan 4, 2025
0.1.0 Jan 1, 2025

#1255 in Algorithms

Download history 309/week @ 2025-01-01 6/week @ 2025-01-08 19/week @ 2025-02-12 140/week @ 2025-02-19 7/week @ 2025-02-26

166 downloads per month

MIT license

46KB
1K SLoC

Matrix Oxide

A simple, lightweight, and from scratch linear algebra library for Rust. Currently still under active development with goals at becoming more of a deep learning library.

Installation

Use cargo CLI:

cargo install matrix-oxide

Or manually add it into your Cargo.toml:

[dependencies]
matrix-oxide = "0.1.2"

Usage

For more thorough information, read the docs.

Example: Multiply 2 random 2x2 matrices.

use matrix_oxide::Matrix;

fn main() {
    let matrix_a = Matrix::<i32>::new_random(2, 2);
    let matrix_b = Matrix::<i32>::new_random(2, 2);

    let matrix_ab = matrix_a.multiply(&matrix_b);
}

lib.rs:

Matrix Oxide

A simple, lightweight, and from scratch linear algebra library for Rust. Currently still under active development with goals at becoming more of a deep learning library.

Installation

Use cargo CLI:

cargo install matrix-oxide

Or manually add it into your Cargo.toml:

[dependencies]
matrix-oxide = "0.1.2"

Usage

For more thorough information, read the docs.

Example: Multiply 2 random 2x2 matrices.

let matrix_a = Matrix::<i32>::new_random(2, 2);
let matrix_b = Matrix::<i32>::new_random(2, 2);

let matrix_ab = matrix_a.multiply(&matrix_b);

No runtime deps