cr.sparse.hard_threshold

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

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