diff options
author | 2009-08-11 15:15:06 +0200 | |
---|---|---|
committer | 2009-08-11 15:15:06 +0200 | |
commit | afbd73b5cdc1ce9b8ae54e9dd08332c870cf54d2 (patch) | |
tree | 1a7803061dfd11097b94f1e1a54d374d254c3867 /Eigen/src/Core/products/GeneralMatrixMatrix.h | |
parent | a4f664251863907604d43be70a41cc4c1dddd42a (diff) |
overload operartor* with a ProductBase such that "scalar * (mat * mat)" is optimized
as one could naturally expect
Diffstat (limited to 'Eigen/src/Core/products/GeneralMatrixMatrix.h')
-rw-r--r-- | Eigen/src/Core/products/GeneralMatrixMatrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h index ff0f2c1b4..8b3b13266 100644 --- a/Eigen/src/Core/products/GeneralMatrixMatrix.h +++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h @@ -137,7 +137,7 @@ class GeneralProduct<Lhs, Rhs, GemmProduct> GeneralProduct(const Lhs& lhs, const Rhs& rhs) : Base(lhs,rhs) {} - template<typename Dest> void addTo(Dest& dst, Scalar alpha) const + template<typename Dest> void scaleAndAddTo(Dest& dst, Scalar alpha) const { ei_assert(dst.rows()==m_lhs.rows() && dst.cols()==m_rhs.cols()); |