pub fn matrix_size_by_reference(matrix: &mut Array) -> Array
Expand description
Returns an array indicating the size of the matrix along each dimension, passed by reference.
let matrix = ones(3, 5);
assert_eq(size(matrix), [3, 5]);
let matrix = [[[1, 2]]];
assert_eq(size(matrix), [1, 1, 2]);