Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializer list and insert/update chaining #1359

Merged
merged 8 commits into from
Dec 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use brace initializers for DiscreteValues in hybrid
  • Loading branch information
dellaert committed Dec 31, 2022
commit b86c8bb5941546c7f434d572bbe548180458ce13
3 changes: 1 addition & 2 deletions gtsam/hybrid/tests/testHybridBayesNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ TEST(HybridBayesNet, Error) {
EXPECT(assert_equal(expected_pruned_error, pruned_error_tree, 1e-9));

// Verify error computation and check for specific error value
DiscreteValues discrete_values;
boost::assign::insert(discrete_values)(M(0), 1)(M(1), 1);
DiscreteValues discrete_values {{M(0), 1}, {M(1), 1}};

double total_error = 0;
for (size_t idx = 0; idx < hybridBayesNet->size(); idx++) {
Expand Down
3 changes: 0 additions & 3 deletions gtsam/hybrid/tests/testHybridGaussianFactorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <gtsam/linear/JacobianFactor.h>

#include <algorithm>
#include <boost/assign/std/map.hpp>
#include <cstddef>
#include <functional>
#include <iostream>
Expand All @@ -49,8 +48,6 @@

#include "Switching.h"

using namespace boost::assign;

using namespace std;
using namespace gtsam;

Expand Down