Skip to main content

checked_num_elements

Function checked_num_elements 

Source
pub fn checked_num_elements(shape: &[usize]) -> Option<usize>
Expand description

Product of the dimensions, or None on overflow. Rank 0 gives 1.