pub fn numel(shape: &[usize]) -> usize
Computes the total number of elements from a shape.
shape
Total number of elements (product of dimensions).