Conjugate gradient squared method: Difference between revisions

Content deleted Content added
The Algorithm: Completed the steps
The Algorithm: Rephrasing
Line 8:
 
# Choose an initial guess <math>x_0</math>
# Compute <math>r_0 = b - Ax_0</math>
# Choose <math>\tilde r_0 = r_0</math>
# Repeat the following forFor <math>i = 1, 2, 3, \dots</math> do:
## <math>\rho_{i-1} = \tilde r^T_{i-1}r_{i-1}</math>
## If <math>\rho_{i-1} = 0</math>, the method fails.