cunumeric.broadcast#

class cunumeric.broadcast(*arrays: Sequence[Any])#

Produce an object that broadcasts input parameters against one another. It has shape and nd properties and may be used as an iterator.

Parameters:

*arrays (array_likes) – The arrays to broadcast.

Returns:

b – Broadcast the input parameters against one another, and return an object that encapsulates the result. Amongst others, it has shape and nd properties, and may be used as an iterator.

Return type:

broadcast

property index: int#

current index in broadcasted result

property iters: tuple[Iterable[Any], ...]#

tuple of iterators along self’s “components.”

property nd: int#

Number of dimensions of broadcasted result.

property ndim: int#

Number of dimensions of broadcasted result.

property numiter: int#

Number of iterators possessed by the broadcasted result.

reset() None#

Reset the broadcasted result’s iterator(s).

property shape: NdShape#

Shape of broadcasted result.

property size: int#

Total size of broadcasted result.