Function jamml::initializers::n_mat
source · Expand description
Creates a m
by n
matrix of type T
, where each element is x
let x = n_mat(3, 2, 7);
let y = vec![vec![7, 7],
vec![7, 7],
vec![7, 7]];
assert_eq!(x, y);