Skip to content
tmpl

sort_select_cpu

int sort_select_cpu()

The first output_shape[axis] elements of each line along axis in sorted order, and the int64 position each came from. Equal keys keep their input order, in a full sort and a top-k alike — what sort / argsort document, and what the GPU path does.