#matrix-multiplication #matrix #multi-threading #multiplication

multrix

A simple matrix multiplication and manipulation library with multithreading support

1 unstable release

0.1.2 Apr 13, 2023
0.1.1 Apr 13, 2023
0.1.0 Apr 13, 2023

#1575 in Math

27 downloads per month

MIT license

13KB
200 lines

Multrix

Multrix is a simple matrix multiplication and manipulation library for rust.

It is a work in progress, with many features still to be added.

The objective is for it to be fast, easy to use, and easy to extend, with multithreading capabilities.

Examples

Matrix multiplication

use multrix::multrix::Matrix;
fn main() {
    let a = Matrix::new_rand(100, 100);
    let b = Matrix::new_rand(100, 100);
    println!("a + b = {}", a - b);
    println!("a * b = {}", a * b);
}

List of features

  • Matrix creation from files, randomly, or from vectors
  • Matrix addition
  • Matrix transposition
  • Matrix multiplication (sequential and parallel)
  • Matrix output to files or stdout

Documentation

All the functionalities are documented, and the documentation can be found here.

Dependencies

~1.5MB
~30K SLoC