diff options
author | 2009-09-01 13:35:44 +0200 | |
---|---|---|
committer | 2009-09-01 13:35:44 +0200 | |
commit | 1e7a9ea70a35a2a375d9f1283f62a4e7feb7f933 (patch) | |
tree | ddbc01775916546118caa3327f2ec4aaa6a3b40f /Eigen/src | |
parent | 8392373d960c088b076b125775ccfc6a91f7d25e (diff) |
fix issue #47: now m.noalias() = XXX properly resize m if needed
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/Matrix.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index d0603871a..53d10fd31 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -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> |