cunumeric.broadcast_arrays#

cunumeric.broadcast_arrays(*args: Sequence[Any], subok: bool = False) list[ndarray]#

Broadcast any number of arrays against each other.

Parameters:
  • *args (array_likes) – The arrays to broadcast.

  • subok (bool, optional) – This option is ignored by cuNumeric

Returns:

broadcasted – These arrays are views on the original arrays. They are typically not contiguous. Furthermore, more than one element of a broadcasted array may refer to a single memory location. If you need to write to the arrays, make copies first.

Return type:

list of arrays

Availability:

Multiple GPUs, Multiple CPUs