legate.core.StructLogicalArray.broadcast#
- StructLogicalArray.broadcast(
- self,
- int32_t dim,
- size_t dim_size,
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:
- Raises:
RuntimeError – If the array or any of the sub-arrays is a list array
See also