broadcast_shapes#

named_arrays.broadcast_shapes(*shapes)#

An analogue of numpy.broadcast_shapes() for named axes.

Whereas the numpy version of this function accepts a sequence of tuples, this function accepts a sequence of dicts since each axis now has an associated name.

Parameters:

shapes (dict[str, int]) – A sequence of shapes to broadcast against one another.

Return type:

dict[str, int]