fix a couple of issues related to recent products

This commit is contained in:
Gael Guennebaud
2009-07-28 18:11:30 +02:00
parent 1ba35248e9
commit 864171df5c
9 changed files with 35 additions and 18 deletions

View File

@@ -334,7 +334,10 @@ class Matrix
template<typename OtherDerived,typename OtherEvalType>
EIGEN_STRONG_INLINE Matrix& operator=(const ReturnByValue<OtherDerived,OtherEvalType>& func)
{ return Base::operator=(func); }
{
resize(func.rows(), func.cols());
return Base::operator=(func);
}
using Base::operator +=;
using Base::operator -=;
@@ -438,6 +441,7 @@ class Matrix
EIGEN_STRONG_INLINE Matrix(const ReturnByValue<OtherDerived,OtherEvalType>& other)
{
_check_template_params();
resize(other.rows(), other.cols());
other.evalTo(*this);
}
/** Destructor */