Expand description
Sort and argsort operations for FlexTensor.
Operates directly on storage without TensorData round-trips.
Modules§
Functions§
- argsort
- Argsort along a dimension, returning indices that would sort the tensor.
- argtopk
- Return the indices of the
klargest values alongdim, in descending order. Equal values retain their original index order; NaNs precede finite values and infinities, and positive and negative zero compare equal. - sort
- Sort elements along a dimension, returning the sorted tensor.
- sort_
with_ indices - Sort elements along a dimension, returning (sorted_values, indices).