legate.core.LogicalArray.broadcast#

LogicalArray.broadcast(
self,
int32_t dim,
size_t dim_size,
) LogicalArray#

Broadcasts a unit-size dimension of the store. This call may block if the array is unbound.

Parameters:
  • dim (int) – A dimension to broadcast. Must have size 1.

  • dim_size (int, optional) – A new size of the chosen dimension.

Returns:

A new array where the chosen dimension is logically broadcasted.

Return type:

LogicalArray

Raises:

RuntimeError – If the array or any of the sub-arrays is a list array