Expand description
Provides functions to create matricies
let x = column_mat(&vec![1, 2, 3]);
let y = vec![vec![1],
vec![2],
vec![3]];
assert_eq!(x, y);Functionsยง
- column_
mat - Creates a matrix for a column vector from
&Vec v - fn_mat
- Creates a
mbynmatrix of by using functionfto determine each element. - identity_
mat - Creates a
mbymidentity matrix of typeT - n_mat
- Creates a
mbynmatrix of typeT, where each element isx - one_mat
- Creates a
mbynmatrix of typeT, where each element isT::one() - one_
to_ minus_ one_ mat - Creates a
mbynmatrix of random values between1and-1 - ranged_
rand_ around_ mat - Creates a
mbynmatrix of random values betweenvaland-val - ranged_
rand_ mat - Creates a
mbynmatrix of random values betweenminandmax - zero_
mat - Creates a
mbynmatrix of typeT, where each element isT::zero()