fix issue #47: now m.noalias() = XXX properly resize m if needed

This commit is contained in:
Gael Guennebaud
2009-09-01 13:35:44 +02:00
parent 8392373d96
commit 1e7a9ea70a
3 changed files with 34 additions and 34 deletions

View File

@@ -338,7 +338,15 @@ class Matrix
*/
EIGEN_STRONG_INLINE Matrix& operator=(const Matrix& other)
{
return _set(other);
return _set(other);
}
/** \sa MatrixBase::lazyAssign() */
template<typename OtherDerived>
EIGEN_STRONG_INLINE Matrix& lazyAssign(const MatrixBase<OtherDerived>& other)
{
_resize_to_match(other);
return Base::lazyAssign(other.derived());
}
template<typename OtherDerived,typename OtherEvalType>