Eigen::internal::quat_product< Arch, Derived1, Derived2, Scalar > Struct Template Reference

#include <Quaternion.h>

Static Public Member Functions

static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Quaternion< Scalarrun (const QuaternionBase< Derived1 > &a, const QuaternionBase< Derived2 > &b)
 

Member Function Documentation

◆ run()

template<int Arch, class Derived1 , class Derived2 , typename Scalar >
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Quaternion<Scalar> Eigen::internal::quat_product< Arch, Derived1, Derived2, Scalar >::run ( const QuaternionBase< Derived1 > &  a,
const QuaternionBase< Derived2 > &  b 
)
inlinestatic
505  {
506  return Quaternion<Scalar>(a.w() * b.w() - a.x() * b.x() - a.y() * b.y() - a.z() * b.z(),
507  a.w() * b.x() + a.x() * b.w() + a.y() * b.z() - a.z() * b.y(),
508  a.w() * b.y() + a.y() * b.w() + a.z() * b.x() - a.x() * b.z(),
509  a.w() * b.z() + a.z() * b.w() + a.x() * b.y() - a.y() * b.x());
510  }
Scalar * b
Definition: benchVecAdd.cpp:17
This class contains the 4 components of a quaternion and the standard operators and functions needed ...
Definition: Kernel/Math/Quaternion.h:42
const Scalar * a
Definition: level2_cplx_impl.h:32

References a, and b.

Referenced by quatmul_novec().


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