Skip to content

indexing vectors with index arrays #824

@mtar

Description

@mtar

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:

  1. Which module/class/function is affected?
    getitem
  2. What are the circumstances under which the bug appears?
    array indexing on distributed 1d arrays
  3. 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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions