nml-matrix

Crates.ionml-matrix
lib.rsnml-matrix
version0.4.1
sourcesrc
created_at2023-11-05 13:44:50.243031
updated_at2024-01-16 13:22:01.371704
descriptionA small library to work with matrices.
homepage
repositoryhttps://github.com/p0l19/nml-matrix
max_upload_size
id1025959
size41,050
Paul Holstein (p0l19)

documentation

README

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

Commit count: 40

cargo fmt