[][src]Function jamml::initializers::n_mat

pub fn n_mat<T: NumAssign + Copy>(m: usize, n: usize, x: T) -> Mat<T>

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);