mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Let KroneckerProduct inherit ReturnByValue to eliminate temporary evaluation. It's uncommon to store the product back to one of the operands.
This commit is contained in:
@@ -165,9 +165,6 @@ template<typename Derived> class MatrixBase
|
||||
|
||||
template<typename ProductDerived, typename Lhs, typename Rhs>
|
||||
Derived& lazyAssign(const MatrixPowerProductBase<ProductDerived, Lhs,Rhs>& other);
|
||||
|
||||
template<typename Lhs, typename Rhs>
|
||||
Derived& lazyAssign(const KroneckerProduct<Lhs,Rhs>& other);
|
||||
#endif // not EIGEN_PARSED_BY_DOXYGEN
|
||||
|
||||
template<typename OtherDerived>
|
||||
|
||||
@@ -283,7 +283,6 @@ struct stem_function
|
||||
}
|
||||
|
||||
// KroneckerProduct module
|
||||
template<typename Lhs, typename Rhs> class KroneckerProduct;
|
||||
template<typename Lhs, typename Rhs> class KroneckerProductSparse;
|
||||
|
||||
#ifdef EIGEN2_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user