Crate matrix_lib

source ·
Expand description

matrix_lib is liblary giving easy way to do calcualtions on matrices Currently implemented operations are: sum, scalar multiplication, matrix multiplication, transposition, gaussian elimination, determinant, vectorization, devectorization and inversion

example usage:

use matrix_lib::*;

let m1 = matrix![[1,2,3],[4,5,6],[7,8,9]];
assert_eq!(m1.scalar_mul(2), matrix![[2,4,6],[8,10,12],[14,16,18]]);


let m2 = matrix![[1,2,3],[4,5,6],[7,8,9]];
let m3 = matrix![[1,2,3],[4,5,6],[7, 8, 9]];
assert_eq!(m2.mul(m3).unwrap(), matrix![[30, 36, 42], [66, 81, 96], [102, 126, 150]]);

Modules

Macros

Structs