pub fn ones_double_input(nx: INT, ny: INT) -> Array
Expand description
Return a matrix of ones. Arguments indicate the number of rows and columns in the matrix.
let matrix = ones(3, 3);
assert_eq(matrix, [[1.0, 1.0, 1.0],
[1.0, 1.0, 1.0],
[1.0, 1.0, 1.0]]);