with_numpy_cupy

with_numpy_cupy#

mrinufft.operators.base.with_numpy_cupy(fun)[source]#

Ensure the function works internally with numpy or cupy array.