astropy.utils
astropy.utils.misc.
check_broadcast
Determines whether two or more Numpy arrays can be broadcast with each other based on their shape tuple alone.
All shapes to include in the comparison. If only one shape is given it is passed through unmodified. If no shapes are given returns an empty tuple.
tuple
If all shapes are mutually broadcastable, returns a tuple of the full broadcast shape.