tacco.utils.heapsort3

heapsort3(arr, co1, co2)[source]

Sorts an array in-place while following the reordering of the elements in two other arrays.

Parameters:
  • arr – A 1d ndarray with the values to sort

  • co1 – Two 1d ndarray instances of the same length as arr with should be reordered along with arr.

  • co2 – Two 1d ndarray instances of the same length as arr with should be reordered along with arr.

Returns:

None, this is an in-place operation.