Skip to main content

count

Function count 

Source
pub fn count(shape: &[usize]) -> usize
Expand description

The number of items in an array of shape that already exists. Unlike element_count, it checks neither the rank nor overflow. Ranks 0 to 2 compute it inline.