pymc.distributions.shape_utils.shapes_broadcasting#
- pymc.distributions.shape_utils.shapes_broadcasting(*args, raise_exception=False)[source]#
Return the shape resulting from broadcasting multiple shapes. Represents numpy’s broadcasting rules.
- Parameters
- *args: array-like of int
Tuples or arrays or lists representing the shapes of arrays to be broadcast.
- raise_exception: bool (optional)
Controls whether to raise an exception or simply return None if the broadcasting fails.
- Returns
Resultingshape.Ifbroadcastingisnotpossibleandraise_exceptionisFalse,thenNoneisreturned.Ifraise_exceptionisTrue,a- ValueError
israised.