healpix_resample.psf.conjugate_gradient#

healpix_resample.psf.conjugate_gradient(A_mv, b, x0=None, max_iter=200, tol=1e-06, verbose=True)[source]#

Solve A x = b with Conjugate Gradient where A is SPD, using only matvec A_mv(v). No autograd (uses torch.no_grad).

Returns:

x – solution info: dict with residual norms history, iterations