[][src]Trait agnes::permute::SortOrderComparator

pub trait SortOrderComparator<F> {
    fn sort_order_by(&self, compare: F) -> Vec<usize>;
}

Trait providing function to compute and return the sorted permutation order using a comparator. This sort is stable (preserves original order of equal elements).

Required methods

fn sort_order_by(&self, compare: F) -> Vec<usize>

Returns the stable sorted permutation order (Vec<usize>) using the specified comparator.

Loading content...

Implementors

impl<DI, F> SortOrderComparator<F> for DI where
    DI: DataIndex,
    F: FnMut(Value<&DI::DType>, Value<&DI::DType>) -> Ordering
[src]

Loading content...