From 1e62e0b0d823078aa2d9b8ed2c93f7bc889df177 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 17 Nov 2009 16:04:19 +0100 Subject: more ET refactoring: * extend Cwise for multiple storage base class * a lot of cleaning in the Sparse module --- Eigen/src/Core/NoAlias.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Eigen/src/Core/NoAlias.h') diff --git a/Eigen/src/Core/NoAlias.h b/Eigen/src/Core/NoAlias.h index dc32c2f7b..7ed848bce 100644 --- a/Eigen/src/Core/NoAlias.h +++ b/Eigen/src/Core/NoAlias.h @@ -39,7 +39,7 @@ * * \sa MatrixBase::noalias() */ -template +template class StorageBase> class NoAlias { public: @@ -48,17 +48,17 @@ class NoAlias /** Behaves like MatrixBase::lazyAssign(other) * \sa MatrixBase::lazyAssign() */ template - EIGEN_STRONG_INLINE ExpressionType& operator=(const MatrixBase& other) + EIGEN_STRONG_INLINE ExpressionType& operator=(const StorageBase& other) { return m_expression.lazyAssign(other.derived()); } /** \sa MatrixBase::operator+= */ template - EIGEN_STRONG_INLINE ExpressionType& operator+=(const MatrixBase& other) + EIGEN_STRONG_INLINE ExpressionType& operator+=(const StorageBase& other) { return m_expression.lazyAssign(m_expression + other.derived()); } /** \sa MatrixBase::operator-= */ template - EIGEN_STRONG_INLINE ExpressionType& operator-=(const MatrixBase& other) + EIGEN_STRONG_INLINE ExpressionType& operator-=(const StorageBase& other) { return m_expression.lazyAssign(m_expression - other.derived()); } #ifndef EIGEN_PARSED_BY_DOXYGEN @@ -80,12 +80,12 @@ class NoAlias /** \returns a pseudo expression of \c *this with an operator= assuming * no aliasing between \c *this and the source expression. - * + * * More precisely, noalias() allows to bypass the EvalBeforeAssignBit flag. * Currently, even though several expressions may alias, only product * expressions have this flag. Therefore, noalias() is only usefull when * the source expression contains a matrix product. - * + * * Here are some examples where noalias is usefull: * \code * D.noalias() = A * B; @@ -107,7 +107,7 @@ class NoAlias * \sa class NoAlias */ template -NoAlias MatrixBase::noalias() +NoAlias MatrixBase::noalias() { return derived(); } -- cgit v1.2.3