legate.core.LogicalArray#

class legate.core.LogicalArray#
__init__(*args, **kwargs)#

Attributes

__array_interface__

dict[str, Any]

__cuda_array_interface__

dict[str, Any]

__legate_data_interface__

LegateDataInterfaceItem

data

LogicalStore

extents

tuple[uint64_t, ...]

ndim

int32_t

nested

bool

null_mask

LogicalStore

nullable

bool

num_children

uint32_t

raw_handle

uintptr_t

shape

Shape

size

size_t

type

Type

unbound

bool

volume

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 a LogicalStore.

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.