VecAYPX(d,1/rho,zero_short); //d=d/ rho;
- if (normar/(norma*normr) <= tol) { // check for convergence in min{|b-A*x|}
- break;
- }
- if (normr <= tolb) { // check for convergence in A*x=b
- break;
- }
-
-
VecAXPY(x_lsqr,phi,d); // x_lsqr=x_lsqr+phi*d
normr = abs(s) * normr;
MatMultTranspose(AS, u, vt); //vt=A'*u;