Skip to main content

elements

Function elements 

Source
pub fn elements(shape: &[usize], span: Span) -> Result<usize>
Expand description

The number of elements a value of this shape holds.

An axis of zero makes the value empty whatever the other axes say, so that case is answered before the ceiling applies.