20#include <gtsam/base/VectorSpace.h>
58 : Class(
traits<Class>::Retract(Class(), tangent)) {}
105template <
class Class>
111template <
class Class>
Global functions in a separate testing namespace.
Definition chartTesting.h:28
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition Group.h:37
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:152
A helper that implements the traits interface for classes that define vector spaces To use this for y...
Definition VectorSpace.h:199
Opt-in adapter that equips a manifold class with additive vector-space operations.
Definition AsVectorSpace.h:43
AsVectorSpace(const Class &value)
Wrap an existing manifold value.
Definition AsVectorSpace.h:54
AsVectorSpace()
Construct the selected additive identity.
Definition AsVectorSpace.h:51
static AsVectorSpace Identity()
Return the selected additive identity.
Definition AsVectorSpace.h:61
TangentVector vector() const
Return coordinates relative to the selected additive identity.
Definition AsVectorSpace.h:99
AsVectorSpace operator-() const
Negate the wrapped value's coordinates about the identity.
Definition AsVectorSpace.h:80
AsVectorSpace(const TangentVector &tangent)
Retract a tangent vector from the selected identity.
Definition AsVectorSpace.h:57
static constexpr int dimension
Compile-time dimension inherited from the wrapped manifold.
Definition AsVectorSpace.h:48
AsVectorSpace operator+(const AsVectorSpace &other) const
Add another wrapped value using its coordinates about the identity.
Definition AsVectorSpace.h:64
typename traits< Class >::TangentVector TangentVector
Tangent coordinates supplied by the wrapped manifold traits.
Definition AsVectorSpace.h:46
AsVectorSpace operator-(const TangentVector &tangent) const
Retract a negated tangent increment from the current wrapped value.
Definition AsVectorSpace.h:93
AsVectorSpace operator+(const TangentVector &tangent) const
Retract a tangent increment from the current wrapped value.
Definition AsVectorSpace.h:87
AsVectorSpace operator-(const AsVectorSpace &other) const
Subtract another wrapped value using its coordinates about the identity.
Definition AsVectorSpace.h:72