cr.sparse.hard_threshold_sorted

cr.sparse.hard_threshold_sorted(x, K)[source]

Returns the sorted indices and corresponding values of largest K non-zero entries in a vector x