mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix real schur and polynomial solver.
This commit is contained in:
@@ -320,6 +320,7 @@ class PolynomialSolver : public PolynomialSolverBase<Scalar_, Deg_> {
|
||||
internal::companion<Scalar, Deg_> companion(poly);
|
||||
companion.balance();
|
||||
m_eigenSolver.compute(companion.denseMatrix());
|
||||
eigen_assert(m_eigenSolver.info() == Eigen::Success);
|
||||
m_roots = m_eigenSolver.eigenvalues();
|
||||
// cleanup noise in imaginary part of real roots:
|
||||
// if the imaginary part is rather small compared to the real part
|
||||
|
||||
Reference in New Issue
Block a user