Skip to main content

addressed

Function addressed 

Source
pub fn addressed(
    layout: &Layout,
    selectors: &[(Option<&str>, usize)],
) -> Result<Vec<usize>, Error>
Expand description

The first axis of layout that each selector addresses, given the name of each selector’s one named axis, where it has exactly one, and the number of axes it covers, where more axes than remain cover the rest, as a coordinate past the last axis does. A selector whose name layout has addresses the axis with that name, unless another selector has the same name. Selectors with the same name take free axes in order, as unnamed selectors and NumPy’s index arrays do. Each other selector takes the first free axes whose names don’t conflict with its name. Either way a selector claims every axis it covers. Two selectors that claim one axis, or a selector with no free axis, give an Index error.