Lines Matching refs:roots
492 static inline void computeRoots(const MatrixType& m, VectorType& roots)
526 roots(0) = c2_over_3 + Scalar(2)*rho*cos_theta;
527 roots(1) = c2_over_3 - rho*(cos_theta + s_sqrt3*sin_theta);
528 roots(2) = c2_over_3 - rho*(cos_theta - s_sqrt3*sin_theta);
531 if (roots(0) >= roots(1))
532 std::swap(roots(0),roots(1));
533 if (roots(1) >= roots(2))
535 std::swap(roots(1),roots(2));
536 if (roots(0) >= roots(1))
537 std::swap(roots(0),roots(1));
667 static inline void computeRoots(const MatrixType& m, VectorType& roots)
672 roots(0) = t1 - t0;
673 roots(1) = t1 + t0;