Fixed issue with test with tbb iterators

release/4.3a0
Frank Dellaert 2019-04-08 16:46:56 -04:00
parent a7227cab43
commit 913262b27d
1 changed files with 4 additions and 2 deletions

View File

@ -232,8 +232,10 @@ TEST(SubgraphSolver, Solves) {
// Create a perturbed (non-zero) RHS
const auto xbar = system.Rc1()->optimize(); // merely for use in zero below
auto values_y = VectorValues::Zero(xbar);
values_y.begin()->second.setConstant(100);
(--values_y.end())->second.setConstant(-100);
auto it = values_y.begin();
it->second.setConstant(100);
++it;
it->second.setConstant(-100);
// Solve the VectorValues way
auto values_x = system.Rc1()->backSubstitute(values_y);