diff --git a/gtsam/geometry/tests/testQuaternion.cpp b/gtsam/geometry/tests/testQuaternion.cpp index 90aeffe28..339897a06 100644 --- a/gtsam/geometry/tests/testQuaternion.cpp +++ b/gtsam/geometry/tests/testQuaternion.cpp @@ -21,52 +21,48 @@ namespace gtsam { namespace traits { /// Define Eigen::Quaternion to be a model of the Group concept -template -struct structure_category > { +template +struct structure_category > { typedef group_tag type; }; } // \namespace gtsam::traits namespace group { -template -Eigen::Quaternion<_Scalar, _Options> compose( - const Eigen::Quaternion<_Scalar, _Options> &g, - const Eigen::Quaternion<_Scalar, _Options> & h) { +template +Eigen::Quaternion compose(const Eigen::Quaternion &g, + const Eigen::Quaternion & h) { return g * h; } -template -Eigen::Quaternion<_Scalar, _Options> between( - const Eigen::Quaternion<_Scalar, _Options> &g, - const Eigen::Quaternion<_Scalar, _Options> & h) { +template +Eigen::Quaternion between(const Eigen::Quaternion &g, + const Eigen::Quaternion & h) { return g.inverse() * h; } -template -Eigen::Quaternion<_Scalar, _Options> inverse( - const Eigen::Quaternion<_Scalar, _Options> &g) { +template +Eigen::Quaternion inverse(const Eigen::Quaternion &g) { return g.inverse(); } namespace traits { /// Declare the trait that specifies a quaternion's identity element -template -struct identity > { - static const Eigen::Quaternion<_Scalar, _Options> value; - typedef Eigen::Quaternion<_Scalar, _Options> value_type; +template +struct identity > { + static const Eigen::Quaternion value; + typedef Eigen::Quaternion value_type; }; /// Out of line definition of identity -template -const Eigen::Quaternion<_Scalar, _Options> identity< - Eigen::Quaternion<_Scalar, _Options> >::value = Eigen::Quaternion<_Scalar, - _Options>::Identity(); +template +const Eigen::Quaternion identity >::value = + Eigen::Quaternion::Identity(); /// Define the trait that asserts quaternions are a multiplicative group -template -struct flavor > { +template +struct flavor > { typedef multiplicative_tag type; };