bayespy.utils.misc.broadcasted_shape

bayespy.utils.misc.broadcasted_shape(*shapes)[source]

Computes the resulting broadcasted shape for a given set of shapes.

Uses the broadcasting rules of NumPy. Raises an exception if the shapes do not broadcast.