heat
heat copied to clipboard
indexing vectors with index arrays
Description A clear and concise description of the bug and the associated functionality.
various bugs when using index arrays for indexing on distributed one-dimensional DNDarrays.
To Reproduce Steps to reproduce the behavior:
- Which module/class/function is affected? getitem
- What are the circumstances under which the bug appears? array indexing on distributed 1d arrays
- What is the exact error message / erroneous behavior? Runtime error / Segmentation fault
Expected behavior A clear and concise description of what you expected to happen. Return DNDarray with indexed values.
Illustrative If applicable, add screenshots or minimal examples to help explain your problem.
x = ht.arange(10,1,-1, split=0)
# wrong order on procs > 2
x[ht.array([3, 3, 1, 8])]
# Segmentation fault procs > 1
x[ht.array([3,3,-3,8])]
# Runtime error procs > 1
x[ht.array([[1,1],[2,3]])]
Version Info master f7f6c35
Additional comments Any other comments here. First case related to #703
Not tested yet:
- Indexing Multi-dimensional arrays
- masks / boolean index arrays
Branch bugs/824-indexing_vectors_with_index_arrays created!
Still open, addressed in #938
reviewed within #1109