complex_view_wrapper#

mrinufft.operators.autodiff.complex_view_wrapper(in_space, out_space)[source]#

Create a decorator for viewed_as_real forward/adjoint methods.

Wraps a method so that if self.viewed_as_real is True, the input is converted from real to complex before the call, and the output is converted back from complex to real afterward.

Parameters:
  • in_space ({"img", "ksp"}) – Whether the method input is image-space or k-space.

  • out_space ({"img", "ksp"}) – Whether the method output is image-space or k-space.