Lines Matching refs:RealScalar
33 typename Dest::RealScalar& tol_error)
36 typedef typename Dest::RealScalar RealScalar;
41 const RealScalar rhsNorm2(rhs.squaredNorm());
53 const RealScalar threshold2(tol_error*tol_error*rhsNorm2); // convergence threshold (compared to residualNorm2)
59 RealScalar residualNorm2(v_new.squaredNorm());
62 // RealScalar beta; // will be initialized inside loop
63 RealScalar beta_new2(v_new.dot(w_new));
65 RealScalar beta_new(sqrt(beta_new2));
66 const RealScalar beta_one(beta_new);
70 RealScalar c(1.0); // the cosine of the Givens rotation
71 RealScalar c_old(1.0);
72 RealScalar s(0.0); // the sine of the Givens rotation
73 RealScalar s_old(0.0); // the sine of the Givens rotation
77 RealScalar eta(1.0);
92 const RealScalar beta(beta_new);
99 const RealScalar alpha = v_new.dot(w);
109 const RealScalar r2 =s*alpha+c*c_old*beta; // s, s_old, c and c_old are still from previous iteration
110 const RealScalar r3 =s_old*beta; // s, s_old, c and c_old are still from previous iteration
111 const RealScalar r1_hat=c*alpha-c_old*s*beta;
112 const RealScalar r1 =sqrt( std::pow(r1_hat,2) + std::pow(beta_new,2) );
212 typedef typename MatrixType::RealScalar RealScalar;