pub fn eye_double_input(nx: INT, ny: INT) -> Array
Expand description
Returns the identity matrix, specifying the number of rows and columns separately.
let matrix = eye(3, 4);
assert_eq(matrix, [[1.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0]]);