Crates.io | mtrs |
lib.rs | mtrs |
version | 0.2.0 |
source | src |
created_at | 2020-10-10 14:52:32.112205 |
updated_at | 2020-10-27 18:10:07.439487 |
description | A implementation of matrices in Rust |
homepage | |
repository | https://github.com/ZippyMagician/mtrs.git |
max_upload_size | |
id | 298036 |
size | 39,290 |
A library for handling mathematical matrices in Rust
#[macro_use]
extern crate mtrs;
use mtrs::Matrix;
fn main() {
let mat1 = Matrix::identity(2);
let mat2 = matrix![(2, 2); 1, 2; 3, 4];
assert_eq!(mat1 * mat2, mat2);
println!("{}", mat2);
}