pynfft.solver - iterative solver for inverse NFFT

Solver class

class pynfft.solver.Solver

Solver is a class for computing the inverse NFFT iteratively.

The solver’s instantiation requires an initialized NFFT object used internally for the multiple forward and adjoint NFFT performed. The class uses conjugate-gradient as the default solver but alternative solvers may be specified at construct-time.

The solver must be first initialized by calling the before_loop() method.

The solver’s implementation let you carry one iteration at a time with a call to loop_one_step(). It is left to the user to chose whichever stopping condition to apply.

The class exposes the internals of the solver through its respective properties. For instance, the residuals for the current iteration can be accessed via the :attr:r_iter attribute.

alpha_iter

Step size for search direction.

before_loop()

Initialize the solver internals.

beta_iter

Step size for search direction.

dot_p_hat_iter

Weighted dotproduct of p_hat_iter.

dot_r_iter

Weighted dotproduct of r_iter.

dot_r_iter_old

Previous dot_r_iter.

dot_v_iter

Weighted dotproduct of v_iter.

dot_z_hat_iter

Weighted dotproduct of z_hat_iter.

dot_z_hat_iter_old

Previous dot_z_hat_iter.

dtype

The dtype of the solver.

f_hat_iter

Iterative solution.

flags

The precomputation flags.

loop_one_step()

Perform one iteration of the solver.

p_hat_iter

Search direction.

r_iter

Residual vector.

v_iter

Residual vector update.

w

Weighting factors.

w_hat

Damping factors.

y

Right hand side, samples.

z_hat_iter

Residual of normal equation of the first kind.

Table Of Contents

Previous topic

pynfft.nfft - core NFFT functionalities

Next topic

pynfft.util - Utility functions

This Page