#matrix #linear-algebra #nml

nml-matrix

A small library to work with matrices

9 unstable releases (3 breaking)

0.4.1 Jan 16, 2024
0.3.1 Dec 28, 2023
0.2.1 Dec 25, 2023
0.1.5 Nov 14, 2023

#1331 in Algorithms

Download history 2/week @ 2024-03-11 57/week @ 2024-04-01

109 downloads per month

BSD-3-Clause

40KB
784 lines

The New-Matrix-Library (NML)

While writitng this library i followed the tutorial from Andrei Ciobanu

This library is a personal project of mine to learn more about linear algebra and get more into rust-programming. You can also find the Library on Crates.io and add it to your projects with the cargo package manager.

Usage

Add this to your Cargo.toml:

[dependencies]
nml-matrix = "0.4.1"

Example

use nml_matrix::NmlMatrix;

fn main() {
    let a = NmlMatrix::new_with_data(3, 2, vec![1, 2, 3, 4, 5, 6]);
    let b = NmlMatrix::new_with_data(3, 2, vec![1, 2, 3, 4, 5, 6]);
    let c = a * b;
    println!("{:?}", c);
}

Used libraries

[dependencies]
num-traits = "0.2.17"
rand = "0.8.5"

Documentation

You can find the documentation here

License

This project is licensed under the BSD 3-Clause License - see the LICENSE-File file for details

Dependencies

~335–460KB