get_operator#
- mrinufft.operators.base.get_operator(backend_name, wrt_data=False, wrt_traj=False, *args, **kwargs)[source]#
Return an MRI Fourier operator interface using the correct backend.
- Parameters:
backend_name (str) – Backend name
wrt_data (bool, default False) – if set gradients wrt to data and images will be available.
wrt_traj (bool, default False) – if set gradients wrt to trajectory will be available.
*args – Arguments to pass to the operator constructor.
**kwargs – Arguments to pass to the operator constructor.
- Returns:
class or instance of class if args or kwargs are given.
- Return type:
FourierOperator
- Raises:
ValueError if the backend is not available. –