You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what i can understand, we have to add dampening at each iteration. I would add the dampning factor to the solve method self.c = self.r + b * self.c to self.c = self.r + b * self.c * (1 - self.damp).
Would the damp be same as CGLS solver (self.damp = damp**2) or something else?
Yea it is (at least it has the same meaning). Basically you want to solve (A+dampI)x=y instead of Ax=y.
But I don’t think it’s correct to add it where you suggest… in general you can try to add damp*Identity to your operator A (say a MatrixMult) and use damp=0 in the solver versus using damp in the solver after making changes… the two should give the same result :)
Motivation
The CG solver currently implements
x=A^-1b
. We may however also solverx=(A+dampI)^-1b
. This is however currently not implemented.Note that
damp
is currently present as input values but never used and the docstring mentions it will be deprecated in v2Definition of done
damp!=0
The text was updated successfully, but these errors were encountered: