Skip to main content

coordinates

Function coordinates 

Source
pub fn coordinates(
    flat: usize,
    shape: &[usize],
) -> impl Iterator<Item = (usize, usize)> + '_
Expand description

Each axis’s coordinate of flat position flat, from the last axis to the first. flat must be within the shape.