Make non-const so we can move
parent
d9e8c0526d
commit
1e0ad3b246
|
@ -467,7 +467,7 @@ std::shared_ptr<GaussianConditional> HessianFactor::eliminateCholesky(const Orde
|
||||||
info_.choleskyPartial(nFrontals);
|
info_.choleskyPartial(nFrontals);
|
||||||
|
|
||||||
// TODO(frank): pre-allocate GaussianConditional and write into it
|
// 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));
|
conditional = std::make_shared<GaussianConditional>(keys_, nFrontals, std::move(Ab));
|
||||||
|
|
||||||
// Erase the eliminated keys in this factor
|
// Erase the eliminated keys in this factor
|
||||||
|
|
Loading…
Reference in New Issue