arkouda icon indicating copy to clipboard operation
arkouda copied to clipboard

Additional Indexing functionality in `ArrayView`

Open stress-tess opened this issue 2 years ago • 0 comments

Update ak.ArrayView indexing to be able to do everything shown in the numpy basic indexing tutorial. We currently only handle integer array indexing and a mix of ints and slices

Namely we need to:

  • [ ] Make changing x.shape equivalent to a x.reshape operation
>>> x = np.arange(10)
>>> x.shape = (2, 5)
>>> x[1, 3]
8

Advanced indexing is triggered when the selection object, obj, is a non-tuple sequence object, an ndarray (of data type integer or bool), or a tuple with at least one sequence object or ndarray (of data type integer or bool). There are two types of advanced indexing: integer and Boolean.

stress-tess avatar Apr 27 '22 16:04 stress-tess