quantlib.mlab.util.common_shape

common_shape(args)

Inspect the input arguments to a function and verify that the shapes are compatible, in a matlab sense: either scalar or arrays of identical shapes