44 for (
size_t i = 0;
i <
N;
i++)
53 for (
size_t i = 0;
i <
N;
i++)
57 void print(
const std::string&
s =
"")
const {
58 std::cout <<
s << *
this << std::endl;
77 using namespace gtsam;
84 EXPECT(check_group_invariants(e, s1));
92 EXPECT(check_group_invariants(e, s1));
110 os <<
"( " << m.first <<
", " << m.second <<
")";
117 struct traits<Dih6> : internal::MultiplicativeGroupTraits<Dih6> {
118 static void Print(
const Dih6&
m,
const string&
s =
"") {
119 cout <<
s << m << endl;
131 EXPECT(check_group_invariants(e, g));
#define GTSAM_CONCEPT_ASSERT(concept)
void print(const std::string &s="") const
Concept check for values that can be used in unit tests.
PlainPermutationType operator*(const PermutationBase< Other > &other) const
static int runAllTests(TestResult &result)
Concept check class for variable types with Group properties.
InverseReturnType inverse() const
static void Print(const Dih6 &m, const string &s="")
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Derived & applyTranspositionOnTheRight(Index i, Index j)
Namespace containing all symbols from the Eigen library.
static Symmetric Identity()
Symmetric inverse() const
void g(const string &key, int i)
static Symmetric Transposition(int i, int j)
Symmetric operator*(const Symmetric &other) const
bool operator==(const Symmetric &other) const
DirectProduct< S2, S3 > Dih6
static bool Equals(const Dih6 &m1, const Dih6 &m2, double tol=1e-8)
const IndicesType & indices() const
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
ofstream os("timeSchurFactors.csv")
friend std::ostream & operator<<(std::ostream &os, const Symmetric &m)
Symmetric(const Eigen::PermutationMatrix< N > &P)
TEST(SmartFactorBase, Pinhole)
bool equals(const Symmetric< N > &other, double tol=0) const