[][src]Function jamml::initializers::zero_mat

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

Creates a m by n matrix of type T, where each element is T::zero()

let x = zero_mat::<i32>(3, 2);
let y = vec![vec![0, 0],
             vec![0, 0],
             vec![0, 0]];
assert_eq!(x, y);