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
quantlib