Home | History | Annotate | Download | only in Eigenvalues

Lines Matching refs:roots

494   static inline void computeRoots(const MatrixType& m, VectorType& roots)
504 // eigenvalues are the roots to this equation, all guaranteed to be
510 // Construct the parameters used in classifying the roots of the equation
511 // and in solving the equation for the roots in closed form.
523 // Compute the eigenvalues by solving for the roots of the polynomial.
528 roots(0) = c2_over_3 + Scalar(2)*rho*cos_theta;
529 roots(1) = c2_over_3 - rho*(cos_theta + s_sqrt3*sin_theta);
530 roots(2) = c2_over_3 - rho*(cos_theta - s_sqrt3*sin_theta);
533 if (roots(0) >= roots(1))
534 std::swap(roots(0),roots(1));
535 if (roots(1) >= roots(2))
537 std::swap(roots(1),roots(2));
538 if (roots(0) >= roots(1))
539 std::swap(roots(0),roots(1));
669 static inline void computeRoots(const MatrixType& m, VectorType& roots)
674 roots(0) = t1 - t0;
675 roots(1) = t1 + t0;