Skip to content

Commit

Permalink
Merge pull request #690 from ToniRV/fix/shonan_averaging_dense_to_sparse
Browse files Browse the repository at this point in the history
Fix/shonan averaging dense to sparse
  • Loading branch information
dellaert authored Feb 4, 2021
2 parents 8261326 + 44d9c77 commit b6bd656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/sfm/ShonanAveraging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b6bd656

Please sign in to comment.