sf.parameters.wrap_mathfunc

wrap_mathfunc(func)[source]

Applies the wrapped sympy function elementwise to numpy arrays.

Required because the sympy math functions cannot deal with numpy arrays. We implement no broadcasting; if the first argument is a numpy array, we assume all the arguments are arrays of the same shape.