aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-08-28 15:28:23 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-08-28 15:28:23 +0000
commit3ced3f91c246315453d49f43d931d17283010b2a (patch)
tree55fb741e42a58b39a8e28e37bf83b263ec816647 /Eigen/src
parent70266b4d05d2565326d014f678d6c812edd3e27e (diff)
* temporarily remove doxygen customization, we'll see if that fix api.kde.org
but I no hope, that would be too simple ! * added Rotation2D typedefs * remove CoreDeclarations header file
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/Functors.h4
-rw-r--r--Eigen/src/Geometry/Rotation.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/Eigen/src/Core/Functors.h b/Eigen/src/Core/Functors.h
index f0bc1fd4f..4295aa4da 100644
--- a/Eigen/src/Core/Functors.h
+++ b/Eigen/src/Core/Functors.h
@@ -247,13 +247,13 @@ struct ei_functor_traits<ei_scalar_real_op<Scalar> >
*
* \sa class CwiseUnaryOp, MatrixBase::operator*, MatrixBase::operator/
*/
-/* NOTE why doing the ei_pset1() *is* an optimization ?
+/* NOTE why doing the ei_pset1() in packetOp *is* an optimization ?
* indeed it seems better to declare m_other as a PacketScalar and do the ei_pset1() once
* in the constructor. However, in practice:
* - GCC does not like m_other as a PacketScalar and generate a load every time it needs it
* - one the other hand GCC is able to moves the ei_pset1() away the loop :)
* - simpler code ;)
- * (ICC performs well in both cases)
+ * (ICC and gcc 4.4 seems to perform well in both cases, the issue is visible with y = a*x + b*y)
*/
template<typename Scalar>
struct ei_scalar_multiple_op {
diff --git a/Eigen/src/Geometry/Rotation.h b/Eigen/src/Geometry/Rotation.h
index a7127d634..9ce6e71ca 100644
--- a/Eigen/src/Geometry/Rotation.h
+++ b/Eigen/src/Geometry/Rotation.h
@@ -175,6 +175,13 @@ public:
{ return m_angle * (1-t) + t * other; }
};
+/** \ingroup GeometryModule
+ * single precision 2D rotation type */
+typedef Rotation2D<float> Rotation2Df;
+/** \ingroup GeometryModule
+ * double precision 2D rotation type */
+typedef Rotation2D<double> Rotation2Dd;
+
/** Set \c *this from a 2x2 rotation matrix \a mat.
* In other words, this function extract the rotation angle
* from the rotation matrix.