26 using namespace gtsam;
29 #ifdef TRACK_ELIMINATE 32 IndexFactor actual(
keys.begin(),
keys.end());
36 IndexConditional::shared_ptr expected0 = IndexConditional::FromRange(
keys.begin(),
keys.end(), 1);
37 IndexConditional::shared_ptr expected1 = IndexConditional::FromRange(
keys.begin()+1,
keys.end(), 1);
38 IndexConditional::shared_ptr expected2 = IndexConditional::FromRange(
keys.begin()+2,
keys.end(), 1);
69 std::make_shared<SymbolicFactor>(2, 4, 6),
70 std::make_shared<SymbolicFactor>(1, 2, 5),
71 std::make_shared<SymbolicFactor>(0, 3)};
75 SymbolicConditional::FromKeys(
KeyVector{0,1,2,3,4,5,6}, 4);
77 const auto [actualConditional, actualFactor] =
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
const GaussianFactorGraph factors
std::pair< std::shared_ptr< SymbolicConditional >, std::shared_ptr< SymbolicFactor > > EliminateSymbolic(const FactorGraph< FACTOR > &factors, const Ordering &keys)
const_iterator end() const
const_iterator begin() const
#define EXPECT(condition)
const KeyVector & keys() const
Access the factor's involved variable keys.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
const_iterator begin() const
TEST(SymbolicFactor, Constructors)