legate.core.LogicalArray.__getitem__#

LogicalArray.__getitem__(
self,
indices: int64_t | slice | tuple[int64_t | slice, ...],
) LogicalArray#

Get a subarray of this array.

Parameters:

indices (int | slice | tuple[int | slice, ...]) – The index or slice(s) of indices of the subarrays to retrieve.

Returns:

The array comprising the subarrays of the slice.

Return type:

LogicalArray

Raises:

NotImplementedError – If the array is nested or nullable.