Save one extra temporary when assigning a sparse product to a row-major sparse matrix

This commit is contained in:
Gael Guennebaud
2020-05-30 23:14:29 +02:00
parent 95177362ed
commit ab615e4114
3 changed files with 16 additions and 1 deletions

View File

@@ -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>