Macros | Functions
quat_slerp.cpp File Reference
#include <iostream>
#include <Eigen/Geometry>
#include <bench/BenchTimer.h>
Include dependency graph for quat_slerp.cpp:

Go to the source code of this file.

Macros

#define BENCH(FUNC)
 

Functions

int main ()
 
template<typename Q >
EIGEN_DONT_INLINE Q nlerp (const Q &a, const Q &b, typename Q::Scalar t)
 
template<typename T >
T sin_over_x (T x)
 
template<typename Q >
EIGEN_DONT_INLINE Q slerp_eigen (const Q &a, const Q &b, typename Q::Scalar t)
 
template<typename Q >
EIGEN_DONT_INLINE Q slerp_gael (const Q &a, const Q &b, typename Q::Scalar t)
 
template<typename Q >
EIGEN_DONT_INLINE Q slerp_legacy (const Q &a, const Q &b, typename Q::Scalar t)
 
template<typename Q >
EIGEN_DONT_INLINE Q slerp_legacy_nlerp (const Q &a, const Q &b, typename Q::Scalar t)
 
template<typename Q >
EIGEN_DONT_INLINE Q slerp_rw (const Q &a, const Q &b, typename Q::Scalar t)
 

Macro Definition Documentation

◆ BENCH

#define BENCH (   FUNC)
Value:
{\
BenchTimer t; \
for(int k=0; k<2; ++k) {\
t.start(); \
for(int i=0; i<1000000; ++i) \
FUNC(a,b,s); \
t.stop(); \
} \
cout << " " << #FUNC << " => \t " << t.value() << "s\n"; \
}

Function Documentation

◆ main()

int main ( )

Definition at line 144 of file quat_slerp.cpp.

◆ nlerp()

template<typename Q >
EIGEN_DONT_INLINE Q nlerp ( const Q a,
const Q b,
typename Q::Scalar  t 
)

Definition at line 11 of file quat_slerp.cpp.

◆ sin_over_x()

template<typename T >
T sin_over_x ( T  x)
inline

Definition at line 76 of file quat_slerp.cpp.

◆ slerp_eigen()

template<typename Q >
EIGEN_DONT_INLINE Q slerp_eigen ( const Q a,
const Q b,
typename Q::Scalar  t 
)

Definition at line 17 of file quat_slerp.cpp.

◆ slerp_gael()

template<typename Q >
EIGEN_DONT_INLINE Q slerp_gael ( const Q a,
const Q b,
typename Q::Scalar  t 
)

Definition at line 109 of file quat_slerp.cpp.

◆ slerp_legacy()

template<typename Q >
EIGEN_DONT_INLINE Q slerp_legacy ( const Q a,
const Q b,
typename Q::Scalar  t 
)

Definition at line 23 of file quat_slerp.cpp.

◆ slerp_legacy_nlerp()

template<typename Q >
EIGEN_DONT_INLINE Q slerp_legacy_nlerp ( const Q a,
const Q b,
typename Q::Scalar  t 
)

Definition at line 45 of file quat_slerp.cpp.

◆ slerp_rw()

template<typename Q >
EIGEN_DONT_INLINE Q slerp_rw ( const Q a,
const Q b,
typename Q::Scalar  t 
)

Definition at line 85 of file quat_slerp.cpp.

s
RealScalar s
Definition: level1_cplx_impl.h:126
b
Scalar * b
Definition: benchVecAdd.cpp:17
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
align_3::t
Point2 t(10, 10)
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:20