2 releases
new 0.1.1 | Jan 4, 2025 |
---|---|
0.1.0 | Jan 1, 2025 |
#971 in Algorithms
309 downloads per month
33KB
857 lines
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.
This is currently a pre-release version
Installation
Use cargo CLI:
cargo install matrix-oxide
Or manually add it into your Cargo.toml:
[dependencies]
matrix-oxide = "0.0.1"
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);
matrix_a.multiply(&matrix_b).unwrap();
}