pf_partial_sort Interface

public interface pf_partial_sort

The first n elements of values in order, as an independent copy of length n. Same clamping rule as pf_partial_argsort. Never modifies its input.

Cheaper than pf_sort only while n stays well below the array size -- the underlying std::partial_sort degrades past a full sort as n approaches it. At n = size this is strictly worse than calling pf_sort.


Module Procedures

private interface partial_sort_i32()

Arguments

None

private interface partial_sort_i64()

Arguments

None

private interface partial_sort_f32()

Arguments

None

private interface partial_sort_f64()

Arguments

None

private interface partial_sort_bool()

Arguments

None

private interface partial_sort_chr()

Arguments

None

private interface partial_sort_date()

Arguments

None

private interface partial_sort_time()

Arguments

None

private interface partial_sort_ts()

Arguments

None