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));
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
static Symmetric identity()
Concept check class for variable types with Group properties.
BOOST_CONCEPT_ASSERT((boost::RandomAccessRangeConcept< ListOfOneContainer< int > >))
static void Print(const Dih6 &m, const string &s="")
Derived & applyTranspositionOnTheRight(Index i, Index j)
Namespace containing all symbols from the Eigen library.
void print(const std::string &s="") const
void g(const string &key, int i)
static Symmetric Transposition(int i, int j)
DirectProduct< S2, S3 > Dih6
bool operator==(const Symmetric &other) const
static bool Equals(const Dih6 &m1, const Dih6 &m2, double tol=1e-8)
PlainPermutationType operator*(const PermutationBase< Other > &other) const
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
InverseReturnType inverse() const
Symmetric inverse() const
bool equals(const Symmetric< N > &other, double tol=0) const
ofstream os("timeSchurFactors.csv")
friend std::ostream & operator<<(std::ostream &os, const Symmetric &m)
const IndicesType & indices() const
TEST(LPInitSolver, InfiniteLoopSingleVar)
Symmetric(const Eigen::PermutationMatrix< N > &P)
Symmetric operator*(const Symmetric &other) const