# cupy.broadcast¶

class cupy.broadcast(*arrays)

Object that performs broadcasting.

CuPy actually uses this class to support broadcasting in various operations. Note that this class does not provide an iterator.

Parameters

arrays (tuple of arrays) – Arrays to be broadcasted.

Variables
• shape (tuple of ints) – The broadcasted shape.

• nd (int) – Number of dimensions of the broadcasted shape.

• size (int) – Total size of the broadcasted shape.

• values (list of arrays) – The broadcasted arrays.

Methods

Attributes

nd
shape
size
values