diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-11-17 16:04:19 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-11-17 16:04:19 +0100 |
commit | 1e62e0b0d823078aa2d9b8ed2c93f7bc889df177 (patch) | |
tree | baf0ebffcfc15fc56e293494c24d417a4807b74c /Eigen/src/Core/CwiseUnaryOp.h | |
parent | 63bcc1c0fbd03042715caf40aa090385c8fe0043 (diff) |
more ET refactoring:
* extend Cwise for multiple storage base class
* a lot of cleaning in the Sparse module
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseUnaryOp.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index e5a91ca04..0ba7e1366 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -135,9 +135,9 @@ class CwiseUnaryOpImpl<UnaryOp,MatrixType,Dense> : public MatrixBase<CwiseUnaryO * * \sa abs2() */ -template<typename ExpressionType> +template<typename ExpressionType,template <typename> class StorageBase> EIGEN_STRONG_INLINE const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_abs_op) -Cwise<ExpressionType>::abs() const +Cwise<ExpressionType,StorageBase>::abs() const { return _expression(); } @@ -149,9 +149,9 @@ Cwise<ExpressionType>::abs() const * * \sa abs(), square() */ -template<typename ExpressionType> +template<typename ExpressionType,template <typename> class StorageBase> EIGEN_STRONG_INLINE const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_abs2_op) -Cwise<ExpressionType>::abs2() const +Cwise<ExpressionType,StorageBase>::abs2() const { return _expression(); } @@ -163,9 +163,9 @@ Cwise<ExpressionType>::abs2() const * * \sa pow(), log(), sin(), cos() */ -template<typename ExpressionType> +template<typename ExpressionType,template <typename> class StorageBase> inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_exp_op) -Cwise<ExpressionType>::exp() const +Cwise<ExpressionType,StorageBase>::exp() const { return _expression(); } @@ -177,9 +177,9 @@ Cwise<ExpressionType>::exp() const * * \sa exp() */ -template<typename ExpressionType> +template<typename ExpressionType,template <typename> class StorageBase> inline const EIGEN_CWISE_UNOP_RETURN_TYPE(ei_scalar_log_op) -Cwise<ExpressionType>::log() const +Cwise<ExpressionType,StorageBase>::log() const { return _expression(); } |