Merge pull request #690 from ToniRV/fix/shonan_averaging_dense_to_sparse

Fix/shonan averaging dense to sparse
release/4.3a0
Frank Dellaert 2021-02-04 00:07:52 -05:00 committed by GitHub
commit b6bd656584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ static bool PowerMinimumEigenValue(
return true;
}
const Sparse C = pmEigenValue * Matrix::Identity(A.rows(), A.cols()) - A;
const Sparse C = pmEigenValue * Matrix::Identity(A.rows(), A.cols()).sparseView() - A;
const boost::optional<Vector> initial = perturb(S.row(0));
AcceleratedPowerMethod<Sparse> apmShiftedOperator(C, initial);