pylops.utils.decorators.add_ndarray_support_to_solver

pylops.utils.decorators.add_ndarray_support_to_solver(func)[source]

Decorator which converts a solver-type function that only supports a 1d-array into one that supports one (dimsd-shaped) ndarray.

Parameters:
func : callable

Solver type function. Its signature must be func(A, b, *args, **kwargs). Its output must be a result-type tuple: (xinv, ...).