aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCore/SparseMatrix.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2020-05-30 23:14:29 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2020-05-30 23:15:12 +0200
commitab615e4114aafebcf44268aae93b97858f549a11 (patch)
treed032bd07671092a827e6ec101bee5042d21ec4d7 /Eigen/src/SparseCore/SparseMatrix.h
parent95177362edc9c814a102c8a2236695c632892232 (diff)
Save one extra temporary when assigning a sparse product to a row-major sparse matrix
Diffstat (limited to 'Eigen/src/SparseCore/SparseMatrix.h')
-rw-r--r--Eigen/src/SparseCore/SparseMatrix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h
index e0910a2cb..2218b220b 100644
--- a/Eigen/src/SparseCore/SparseMatrix.h
+++ b/Eigen/src/SparseCore/SparseMatrix.h
@@ -782,6 +782,9 @@ class SparseMatrix
template<typename OtherDerived>
inline SparseMatrix& operator=(const EigenBase<OtherDerived>& other)
{ return Base::operator=(other.derived()); }
+
+ template<typename Lhs, typename Rhs>
+ inline SparseMatrix& operator=(const Product<Lhs,Rhs,AliasFreeProduct>& other);
#endif // EIGEN_PARSED_BY_DOXYGEN
template<typename OtherDerived>