GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Types | List of all members
gtsam::internal::ScalarTraits< Scalar > Struct Template Reference

#include <VectorSpace.h>

Inheritance diagram for gtsam::internal::ScalarTraits< Scalar >:
Inheritance graph
[legend]
Collaboration diagram for gtsam::internal::ScalarTraits< Scalar >:
Collaboration graph
[legend]

Public Types

typedef vector_space_tag structure_category
 

Static Public Member Functions

Testable
static void Print (Scalar m, const std::string &str="")
 
static bool Equals (Scalar v1, Scalar v2, double tol=1e-8)
 
Lie Group
static TangentVector Logmap (Scalar m, ChartJacobian H={})
 
static Scalar Expmap (const TangentVector &v, ChartJacobian H={})
 
Lie Group
static TangentVector Logmap (const Scalar &m, ChartJacobian Hm={})
 
static Scalar Expmap (const TangentVector &v, ChartJacobian Hv={})
 
static Scalar Compose (const Scalar &v1, const Scalar &v2, ChartJacobian H1={}, ChartJacobian H2={})
 
static Scalar Between (const Scalar &v1, const Scalar &v2, ChartJacobian H1={}, ChartJacobian H2={})
 
static Scalar Inverse (const Scalar &v, ChartJacobian H={})
 

Manifold

typedef Eigen::Matrix< double, N, N > Jacobian
 
static int GetDimension (const Scalar &)
 
static TangentVector Local (const Scalar &origin, const Scalar &other, ChartJacobian H1={}, ChartJacobian H2={})
 
static Scalar Retract (const Scalar &origin, const TangentVector &v, ChartJacobian H1={}, ChartJacobian H2={})
 

Group

typedef additive_group_tag group_flavor
 
static Scalar Identity ()
 

Manifold

enum  { dimension = 1 }
 
typedef Scalar ManifoldType
 
typedef Eigen::Matrix< double, 1, 1 > TangentVector
 
typedef OptionalJacobian< 1, 1 > ChartJacobian
 
static TangentVector Local (Scalar origin, Scalar other, ChartJacobian H1={}, ChartJacobian H2={})
 
static Scalar Retract (Scalar origin, const TangentVector &v, ChartJacobian H1={}, ChartJacobian H2={})
 

Detailed Description

template<typename Scalar>
struct gtsam::internal::ScalarTraits< Scalar >

A helper that implements the traits interface for scalar vector spaces. Usage: template<> struct traits<Type> : public ScalarTraits<Type> { };


The documentation for this struct was generated from the following file: