Make non-const so we can move

release/4.3a0
Frank Dellaert 2025-01-30 23:49:02 -05:00
parent d9e8c0526d
commit 1e0ad3b246
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ std::shared_ptr<GaussianConditional> HessianFactor::eliminateCholesky(const Orde
info_.choleskyPartial(nFrontals);
// TODO(frank): pre-allocate GaussianConditional and write into it
const VerticalBlockMatrix Ab = info_.split(nFrontals);
VerticalBlockMatrix Ab = info_.split(nFrontals);
conditional = std::make_shared<GaussianConditional>(keys_, nFrontals, std::move(Ab));
// Erase the eliminated keys in this factor