cg

Contents

cg#

mrinufft.extras.optim.cg(operator, kspace_data, damp=0.0, x0=None, x_init=None, max_iter=10, tol=0.0001, progressbar=True, callback=None)[source]#

Perform conjugate gradient (CG) optimization for image reconstruction.

The image is updated using the gradient of a data consistency term, and a velocity vector is used to accelerate convergence.

Parameters:

Note

This function uses numpy for all CPU arrays, and cupy for all on-gpu array. It will convert all its array argument to the respective array library. The outputs will be converted back to the original array module and device.