Description
When using indices to acces array elements the order in the result is not stable for different splits.
To Reproduce
import heat as ht
a = ht.array([0,1], split = 0)
indices = ht.array([0, 1, 0, 1], split=0)
b = a[indices]
b.balance_()
print(b._DNDarray__array)
print(b)
With 1 process this gives [0, 1, 0, 1] as expected
Run this with n=2 and it changes the order to [0, 0, 1, 1].
Expected behavior
The same ordering in the result for all splits.
Description
When using indices to acces array elements the order in the result is not stable for different splits.
To Reproduce
With 1 process this gives [0, 1, 0, 1] as expected
Run this with n=2 and it changes the order to [0, 0, 1, 1].
Expected behavior
The same ordering in the result for all splits.