diff --git a/vcg/math/eigen.h b/vcg/math/eigen.h index 62074f72..769d876b 100644 --- a/vcg/math/eigen.h +++ b/vcg/math/eigen.h @@ -303,6 +303,12 @@ inline const Eigen::CwiseUnaryOp& p) { return p.cwise().abs(); } +/** \deprecated use transposeInPlace() or transpose() */ +template +EIGEN_DEPRECATED inline Eigen::Matrix& +Transpose(const Eigen::Matrix& m) +{ return m.transposeInPlace(); return m; } + template inline const Eigen::CwiseBinaryOp::Scalar>, Derived, diff --git a/vcg/math/eigen_matrix_addons.h b/vcg/math/eigen_matrix_addons.h index 3fb9a0e8..be51ba8c 100644 --- a/vcg/math/eigen_matrix_addons.h +++ b/vcg/math/eigen_matrix_addons.h @@ -92,8 +92,6 @@ EIGEN_DEPRECATED inline const Scalar& V( const int i ) const assert(i>=0 && i Transpose() const { return transpose(); }; + /** \deprecated use .cross(p) */ EIGEN_DEPRECATED inline EvalType operator ^ (const Derived& p ) const { return this->cross(p); } @@ -245,13 +250,13 @@ EIGEN_DEPRECATED inline int MaxI() const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(Deriv EIGEN_DEPRECATED inline int MinI() const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived); int i; minCoeff(&i,0); return i; } -/// Padding function: give a default 0 value to all the elements that are not in the [0..2] range. +/// Padding function: give a default 0 value to all the elements that are not in the [0..2] range. /// Useful for managing in a consistent way object that could have point2 / point3 / point4 inline Scalar Ext( const int i ) const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived); EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived); - + if(i>=0 && i