23 using namespace gtsam;
84 EXPECT(check_group_invariants(
g,h));
96 struct traits<
K4> : internal::AdditiveGroupTraits<K4> {
97 static void Print(
const K4&
m,
const string&
s =
"") {
98 cout <<
s <<
"(" << m.first <<
"," << m.second <<
")" << endl;
114 K4 e(0,0),
a(0, 1),
b(1, 0),
c(1, 1);
130 EXPECT(check_group_invariants(
a,
b));
131 EXPECT(check_group_invariants(
b, c));
132 EXPECT(check_group_invariants(c,
a));
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
BOOST_CONCEPT_ASSERT((boost::RandomAccessRangeConcept< ListOfOneContainer< int > >))
static bool Equals(const K4 &m1, const K4 &m2, double tol=1e-8)
void g(const string &key, int i)
#define EXPECT(condition)
static void Print(const K4 &m, const string &s="")
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
#define EXPECT_LONGS_EQUAL(expected, actual)
Cyclic group, i.e., the integers modulo N.