aesara.tensor.sort

Contents

aesara.tensor.sort#

aesara.tensor.sort(a, axis=-1, kind='quicksort', order=None)[source]#
Parameters:
  • a (TensorVariable) – Tensor to be sorted

  • axis (TensorVariable) – Axis along which to sort. If None, the array is flattened before sorting.

  • kind ({'quicksort', 'mergesort', 'heapsort'}, optional) – Sorting algorithm. Default is ‘quicksort’.

  • order (list, optional) – When a is a structured array, this argument specifies which fields to compare first, second, and so on. This list does not need to include all of the fields.

Returns:

A sorted copy of an array.

Return type:

array