sounds like I forgot to commit the addition of Transpose compatibility + fix related to recent Eigen change

This commit is contained in:
Paolo Cignoni 2008-11-04 12:33:47 +00:00
parent cb22994ef5
commit 0927eaf2fb
3 changed files with 14 additions and 5 deletions

View File

@ -303,6 +303,12 @@ inline const Eigen::CwiseUnaryOp<Eigen::ei_scalar_abs_op<typename Eigen::ei_trai
Abs(const Eigen::MatrixBase<Derived>& p)
{ return p.cwise().abs(); }
/** \deprecated use transposeInPlace() or transpose() */
template<typename Scalar,int Size,int StorageOrder>
EIGEN_DEPRECATED inline Eigen::Matrix<Scalar,Size,Size,StorageOrder>&
Transpose(const Eigen::Matrix<Scalar,Size,Size,StorageOrder>& m)
{ return m.transposeInPlace(); return m; }
template<typename Derived>
inline const Eigen::CwiseBinaryOp<Eigen::ei_scalar_max_op<typename Eigen::ei_traits<Derived>::Scalar>,
Derived,

View File

@ -92,8 +92,6 @@ EIGEN_DEPRECATED inline const Scalar& V( const int i ) const
assert(i>=0 && i<SizeAtCompileTime);
return data()[i];
}
// // redefined because gcc 4.0.1 does not handle using Base::V
// EIGEN_DEPRECATED inline Scalar& V(int i) { return (*this)[i]; };
//--------------------------------------------------------------------------------
// SPACE

View File

@ -188,7 +188,7 @@ EIGEN_DEPRECATED void Dump()
}
// norm2 will be renamed squaredNorm() in Eigen
inline Scalar squaredNorm() const { return norm2(); };
// inline Scalar squaredNorm() const { return norm2(); };
/** \deprecated use norm() */
EIGEN_DEPRECATED inline Scalar Norm() const { return norm(); };
@ -199,6 +199,11 @@ EIGEN_DEPRECATED inline Derived& Normalize() { normalize(); return derived(); };
/** \deprecated use normalized() */
EIGEN_DEPRECATED inline const EvalType Normalize() const { return normalized(); };
/** \deprecated use transposeInPlace() or transpose() */
EIGEN_DEPRECATED inline Derived& Transpose() { transposeInPlace(); return derived(); };
/** \deprecated use transpose() */
EIGEN_DEPRECATED inline const Eigen::Transpose<Derived> Transpose() const { return transpose(); };
/** \deprecated use .cross(p) */
EIGEN_DEPRECATED inline EvalType operator ^ (const Derived& p ) const { return this->cross(p); }