pylops_mpi.optimization.cls_basic.CGLS#
- class pylops_mpi.optimization.cls_basic.CGLS(Op, callbacks=None)[source]#
Conjugate gradient least squares
Solve an overdetermined system of equations given either an MPILinearOperator or an MPIStackedLinearOperator
Op
and distributed datay
using conjugate gradient iterations.- Parameters:
- Op
pylops_mpi.MPILinearOperator
orpylops_mpi.MPIStackedLinearOperator
Operator to invert of size \([N \times M]\)
- Op
Notes
Minimize the following functional using conjugate gradient iterations:
\[J = || \mathbf{y} - \mathbf{Op}\,\mathbf{x} ||_2^2 + \epsilon^2 || \mathbf{x} ||_2^2\]where \(\epsilon\) is the damping coefficient.
Methods
__init__
(Op[, callbacks])callback
(x, *args, **kwargs)Callback routine
finalize
([show])Finalize solver
run
(x[, niter, show, itershow])Run solver
setup
(y, x0[, niter, damp, tol, show])Setup solver
solve
(y, x0[, niter, damp, tol, show, itershow])Run entire solver
step
(x[, show])Run one step of solver
Examples using pylops_mpi.optimization.cls_basic.CGLS
#
Post Stack Inversion - 3D