From 3cf5bb31f6b6e3b6b8f229ed1658cb867fe6e8f5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 3 Aug 2009 16:05:15 +0200 Subject: * Bye bye MultiplierBase, extend a bit AnyMatrixBase to allow =, +=, and -= * This probably makes ReturnByValue needless --- Eigen/src/Core/ReturnByValue.h | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'Eigen/src/Core/ReturnByValue.h') diff --git a/Eigen/src/Core/ReturnByValue.h b/Eigen/src/Core/ReturnByValue.h index 58b205edc..3f2b478ff 100644 --- a/Eigen/src/Core/ReturnByValue.h +++ b/Eigen/src/Core/ReturnByValue.h @@ -48,14 +48,6 @@ template class ReturnByValue public: template inline void evalTo(Dest& dst) const { static_cast(this)->evalTo(dst); } - template inline void addTo(Dest& dst) const - { static_cast(this)->_addTo(dst); } - template inline void subTo(Dest& dst) const - { static_cast(this)->_subTo(dst); } - template inline void _addTo(Dest& dst) const - { EvalType res; evalTo(res); dst += res; } - template inline void _subTo(Dest& dst) const - { EvalType res; evalTo(res); dst -= res; } }; template @@ -68,14 +60,6 @@ template inline void evalTo(Dest& dst) const { static_cast(this)->evalTo(dst); } - template inline void addTo(Dest& dst) const - { static_cast(this)->_addTo(dst); } - template inline void subTo(Dest& dst) const - { static_cast(this)->_subTo(dst); } - template inline void _addTo(Dest& dst) const - { EvalType res; evalTo(res); dst += res; } - template inline void _subTo(Dest& dst) const - { EvalType res; evalTo(res); dst -= res; } inline int rows() const { return static_cast(this)->rows(); } inline int cols() const { return static_cast(this)->cols(); } }; @@ -88,20 +72,4 @@ Derived& MatrixBase::operator=(const ReturnByValue -template -Derived& MatrixBase::operator+=(const ReturnByValue& other) -{ - other.addTo(derived()); - return derived(); -} - -template -template -Derived& MatrixBase::operator-=(const ReturnByValue& other) -{ - other.subTo(derived()); - return derived(); -} - #endif // EIGEN_RETURNBYVALUE_H -- cgit v1.2.3