#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

#975 in Algorithms

Download history 1/week @ 2023-12-29 8/week @ 2024-01-12 21/week @ 2024-02-23 19/week @ 2024-03-01 1/week @ 2024-03-08 1/week @ 2024-03-15 47/week @ 2024-03-29 10/week @ 2024-04-05

57 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

~345–465KB