diff options
author | 2009-12-22 17:37:11 +0100 | |
---|---|---|
committer | 2009-12-22 17:37:11 +0100 | |
commit | e182e9c6166840b8db44e0be459a2e26d26fda0f (patch) | |
tree | 4947fcce42a9cc79f5a9f7bce28e79b36b7a3ce2 /Eigen/src/Core/DenseStorageBase.h | |
parent | af4d8c5cecf1a1595dc601f2220ff3a8fd8d2957 (diff) |
extend the DenseStorageMatrix mechanism to all expressions
Diffstat (limited to 'Eigen/src/Core/DenseStorageBase.h')
-rw-r--r-- | Eigen/src/Core/DenseStorageBase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/DenseStorageBase.h b/Eigen/src/Core/DenseStorageBase.h index b9257156e..ed116d708 100644 --- a/Eigen/src/Core/DenseStorageBase.h +++ b/Eigen/src/Core/DenseStorageBase.h @@ -546,7 +546,7 @@ struct ei_conservative_resize_like_impl EIGEN_STATIC_ASSERT_DYNAMIC_SIZE(Derived) EIGEN_STATIC_ASSERT_DYNAMIC_SIZE(OtherDerived) - typename DenseBase<Derived>::PlainMatrixType tmp(other); + typename Derived::PlainMatrixType tmp(other); const int common_rows = std::min(tmp.rows(), _this.rows()); const int common_cols = std::min(tmp.cols(), _this.cols()); tmp.block(0,0,common_rows,common_cols) = _this.block(0,0,common_rows,common_cols); @@ -562,7 +562,7 @@ struct ei_conservative_resize_like_impl<Derived,OtherDerived,true> if (_this.rows() == other.rows() && _this.cols() == other.cols()) return; // segment(...) will check whether Derived/OtherDerived are vectors! - typename DenseBase<Derived>::PlainMatrixType tmp(other); + typename Derived::PlainMatrixType tmp(other); const int common_size = std::min<int>(_this.size(),tmp.size()); tmp.segment(0,common_size) = _this.segment(0,common_size); _this.derived().swap(tmp); |