24 #include <boost/assign/std/vector.hpp> 25 #include <boost/assign/list_of.hpp> 26 #include <boost/make_shared.hpp> 27 #include <boost/tuple/tuple.hpp> 30 using namespace gtsam;
34 #ifdef TRACK_ELIMINATE 37 IndexFactor actual(
keys.begin(),
keys.end());
41 IndexConditional::shared_ptr expected0 = IndexConditional::FromRange(
keys.begin(),
keys.end(), 1);
42 IndexConditional::shared_ptr expected1 = IndexConditional::FromRange(
keys.begin()+1,
keys.end(), 1);
43 IndexConditional::shared_ptr expected2 = IndexConditional::FromRange(
keys.begin()+2,
keys.end(), 1);
80 SymbolicConditional::FromKeys(list_of(0)(1)(2)(3)(4)(5)(6), 4);
84 boost::tie(actualConditional, actualFactor) =
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
const_iterator end() const
GaussianFactorGraph factors(list_of(factor1)(factor2)(factor3))
const_iterator begin() const
boost::shared_ptr< This > shared_ptr
Typedef to the conditional base class.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
const_iterator begin() const
#define EXPECT(condition)
boost::shared_ptr< This > shared_ptr
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
const KeyVector & keys() const
Access the factor's involved variable keys.
std::pair< boost::shared_ptr< SymbolicConditional >, boost::shared_ptr< SymbolicFactor > > EliminateSymbolic(const FactorGraph< FACTOR > &factors, const Ordering &keys)
TEST(SymbolicFactor, Constructors)