Skip to main content

indices_sorted_unique

Function indices_sorted_unique 

Source
pub fn indices_sorted_unique<Idx: Ord>(idx: &[Idx]) -> bool
Expand description

Returns true if idx is sorted ascending with no duplicates.

ยงWarning

The kernels in this module require this invariant but do not check it themselves.