legate.core.LogicalArray#
- class legate.core.LogicalArray#
- __init__(*args, **kwargs)#
Attributes
dict[str, Any]
dict[str, Any]
LegateDataInterfaceItem
LogicalStore
tuple[uint64_t, ...]
int32_t
bool
LogicalStore
bool
uint32_t
uintptr_t
Shape
size_t
Type
bool
size_t
Methods
__getitem__
(self, indices)Get a subarray of this array.
child
(self, uint32_t index)Get a child array of this array.
delinearize
(self, int32_t dim, shape)Delinearize a dimension into multiple dimensions.
fill
(self, value)Fill the array with a value.
from_raw_handle
(uintptr_t raw_handle)Create a
LogicalArray
from a pointer to C++LogicalArray
.from_store
(LogicalStore store)Create a
LogicalArray
from aLogicalStore
.get_physical_array
(self[, target])Get a
PhysicalArray
of the data for this array.offload_to
(self, StoreTarget target_mem)Offload array to specified target memory.
project
(self, int32_t dim, int64_t index)Project out or "flatten" a dimension of the array.
promote
(self, int32_t extra_dim, size_t dim_size)Add an extra dimension to the array.
slice
(self, int32_t dim, slice sl)Get a contiguous sub-section of the array.
transpose
(self, axes)Get a transpose of the array.