Module jamml::ops

source ·
Expand description

Defines Functions that opperate on matrices

let m: Mat<i32> = vec![vec![1, 2, 3],
                       vec![4, 5, 6],
                       vec![7, 8, 9]];

let t: Mat<i32> = vec![vec![1, 4, 7],
                       vec![2, 5, 8],
                       vec![3, 6, 9]];

assert_eq!(m, transpose(&t));

Functions

Calculates the dot product of two Vectors of Numbers.
Calculates the transpose of a matrix