This PR resolves Effort 1(b) of #68. It allows users to get items by List[Int] or NDArray[DType.index]. It now returns a non-flattened array. The behavior is aligned with numpy, which returns an array that has the same ndim with the input array, but only differs in the shape of the first dimension. See examples below.
This PR resolves Effort 1(b) of #68. It allows users to get items by List[Int] or NDArray[DType.index]. It now returns a non-flattened array. The behavior is aligned with numpy, which returns an array that has the same ndim with the input array, but only differs in the shape of the first dimension. See examples below.
Example:
The test file is also added.