Go to the documentation of this file.
51 "This type's structure_category trait does not assert it as a group (or derived)");
79 check_group_invariants(const
G&
a, const
G&
b,
double tol = 1
e-9) {
91 struct MultiplicativeGroupTraits {
92 typedef group_tag structure_category;
93 typedef multiplicative_group_tag group_flavor;
101 template<
class Class>
102 struct MultiplicativeGroup : MultiplicativeGroupTraits<Class>, Testable<Class> {};
106 template<
class Class>
107 struct AdditiveGroupTraits {
108 typedef group_tag structure_category;
109 typedef additive_group_tag group_flavor;
117 template<
class Class>
118 struct AdditiveGroup : AdditiveGroupTraits<Class>, Testable<Class> {};
125 compose_pow(
const G&
g,
size_t n) {
126 if (
n == 0)
return traits<G>::Identity();
127 else if (
n == 1)
return g;
128 else return traits<G>::Compose(compose_pow(
g,
n - 1),
g);
133 template<
typename G,
typename H>
158 template<
typename G,
typename H>
160 internal::MultiplicativeGroupTraits<DirectProduct<G, H> > {};
164 template<
typename G,
typename H>
169 const G&
g()
const {
return this->first; }
170 const H&
h()
const {
return this->second;}
194 template<
typename G,
typename H>
196 internal::AdditiveGroupTraits<DirectSum<G, H> > {};
208 #define GTSAM_CONCEPT_GROUP_INST(T) template class gtsam::IsGroup<T>;
209 #define GTSAM_CONCEPT_GROUP_TYPE(T) typedef gtsam::IsGroup<T> _gtsam_IsGroup_##T;
DirectSum operator+(const DirectSum &other) const
DirectSum()
Default constructor yields identity.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
traits< G >::structure_category structure_category_tag
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
DirectProduct(const G &g, const H &h)
DirectSum operator-() const
DirectSum(const G &g, const H &h)
DirectProduct()
Default constructor yields identity.
Group operator syntax flavors.
static DirectSum Identity()
traits< G >::group_flavor flavor_tag
DirectProduct operator*(const DirectProduct &other) const
DirectProduct inverse() const
DirectSum operator-(const DirectSum &other) const
GTSAM_CONCEPT_ASSERT(IsGroup< G >)
static DirectProduct Identity()
void operator_usage(multiplicative_group_tag)
void g(const string &key, int i)
BetweenFactor< Rot3 > Between
void operator_usage(additive_group_tag)
GTSAM_CONCEPT_ASSERT(IsGroup< G >)
tag to assert a type is a group
JacobiRotation< float > G
GTSAM_CONCEPT_REQUIRES(IsGroup< G >, bool) check_group_invariants(const G &a
Check invariants.
BOOST_CONCEPT_USAGE(IsGroup)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:23