Function numel_by_reference

Source
pub fn numel_by_reference(matrix: &mut Array) -> INT
Expand description

Returns the number of elements in a matrix, passed by reference.

let matrix = ones(4, 6);
let n = numel(matrix);
assert_eq(n, 24);
let matrix = [1, [1, 2, 3]];
let n = numel(matrix);
assert_eq(n, 4);