fix resizing in noalias for blocks, and make -=/+= use evaluators

This commit is contained in:
Gael Guennebaud
2013-12-13 18:06:58 +01:00
parent 2ca0ccd2f2
commit e94fe4cc3e
2 changed files with 9 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ class NoAlias
EIGEN_STRONG_INLINE ExpressionType& operator=(const StorageBase<OtherDerived>& other)
{
// TODO either call resize here or call "call_assignment" through m_expression.lazyAssign() ??
m_expression.resizeLike(other.derived());
m_expression.resize(other.derived().rows(), other.derived().cols());
call_assignment(*this, other.derived(), internal::assign_op<Scalar>());
return m_expression;
}