Lines Matching refs:RealScalar
37 typedef typename NumTraits<Scalar>::Real RealScalar; typedef
66 bool makeJacobi(const RealScalar& x, const Scalar& y, const RealScalar& z);
83 bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, const Scalar& y, const RealScalar& z) in makeJacobi()
87 typedef typename NumTraits<Scalar>::Real RealScalar; in makeJacobi() typedef
96 RealScalar tau = (x-z)/(RealScalar(2)*abs(y)); in makeJacobi()
97 RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); in makeJacobi()
98 RealScalar t; in makeJacobi()
99 if(tau>RealScalar(0)) in makeJacobi()
101 t = RealScalar(1) / (tau + w); in makeJacobi()
105 t = RealScalar(1) / (tau - w); in makeJacobi()
107 RealScalar sign_t = t > RealScalar(0) ? RealScalar(1) : RealScalar(-1); in makeJacobi()
108 RealScalar n = RealScalar(1) / sqrt(numext::abs2(t)+RealScalar(1)); in makeJacobi()
176 RealScalar p1 = numext::norm1(p); in makeGivens()
177 RealScalar q1 = numext::norm1(q); in makeGivens()
181 RealScalar p2 = numext::abs2(ps); in makeGivens()
183 RealScalar q2 = numext::abs2(qs); in makeGivens()
185 RealScalar u = sqrt(RealScalar(1) + q2/p2); in makeGivens()
186 if(numext::real(p)<RealScalar(0)) in makeGivens()
196 RealScalar p2 = numext::abs2(ps); in makeGivens()
198 RealScalar q2 = numext::abs2(qs); in makeGivens()
200 RealScalar u = q1 * sqrt(p2 + q2); in makeGivens()
201 if(numext::real(p)<RealScalar(0)) in makeGivens()