24 using namespace gtsam;
69 auto c0 = SymbolicConditional::FromKeys(
KeyVector{0, 1, 2, 3, 4}, 1);
77 auto c0 = std::make_shared<SymbolicConditional>(
78 SymbolicConditional::FromKeys(
KeyVector{1, 2, 3, 4, 5}, 2));
102 SymbolicConditional c0(0, 1, 2), c1(0, 1, 2), c2(1, 2, 3), c3(3,4);
103 CHECK(c0.equals(c1));
104 CHECK(c1.equals(c0));
105 CHECK(!c0.equals(c2));
106 CHECK(!c2.equals(c0));
107 CHECK(!c0.equals(c3));
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
bool equals(const This &c, double tol=1e-9) const
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
size_t nrFrontals() const
const_iterator end() const
#define EXPECT(condition)
TEST(SymbolicConditional, empty)
#define LONGS_EQUAL(expected, actual)
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