3 #include <Eigen/Geometry> 8 template<
typename Quat>
14 template<
typename Quat>
20 template<
typename Quat>
void bench(
const std::string& label)
30 std::cout.precision(3);
41 bench<Quaternionf>(
"float ");
42 bench<Quaterniond>(
"double");
EIGEN_DONT_INLINE void quatmul_default(const Quat &a, const Quat &b, Quat &c)
Namespace containing all symbols from the Eigen library.
#define EIGEN_DONT_INLINE
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void bench(const std::string &label)
EIGEN_DONT_INLINE void quatmul_novec(const Quat &a, const Quat &b, Quat &c)
double best(int TIMER=CPU_TIMER) const
#define BENCH(TIMER, TRIES, REP, CODE)
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Quaternion< Scalar > run(const QuaternionBase< Derived1 > &a, const QuaternionBase< Derived2 > &b)