mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
EigenSolver takes a bool
Change-Id: Ie197b4530adf23cee799b369ab96b0afafb9ead3
This commit is contained in:
@@ -159,8 +159,7 @@ bool FindPolynomialRoots(const Vector& polynomial_in,
|
||||
BalanceCompanionMatrix(&companion_matrix);
|
||||
|
||||
// Find its (complex) eigenvalues.
|
||||
Eigen::EigenSolver<Matrix> solver(companion_matrix,
|
||||
Eigen::EigenvaluesOnly);
|
||||
Eigen::EigenSolver<Matrix> solver(companion_matrix, false);
|
||||
if (solver.info() != Eigen::Success) {
|
||||
LOG(ERROR) << "Failed to extract eigenvalues from companion matrix.";
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user