Skip to main content

positions

Function positions 

Source
pub fn positions(
    view: View<'_>,
    size: usize,
    t: Tolerance,
) -> Result<Vec<usize>, Error>
Expand description

The positions that index values give along an axis of length size. A negative value counts back from the end. A value outside the axis, a float that isn’t a whole number within tolerance t (float_position), or a NaN gives the fill position (Steps::FILL), which reads the fill and writes nothing. Items that aren’t numbers are a Domain error.