957 if (_this.rows() == other.rows() && _this.cols() == other.cols())
return;
968 ((Derived::IsRowMajor && _this.cols() == other.cols()) ||
969 (!Derived::IsRowMajor &&
970 _this.rows() == other.rows())))
972 const Index new_rows = other.rows() - _this.rows();
973 const Index new_cols = other.cols() - _this.cols();
974 _this.derived().m_storage.conservativeResize(other.size(), other.rows(), other.cols());
976 _this.bottomRightCorner(new_rows, other.cols()) = other.bottomRows(new_rows);
977 else if (new_cols > 0)
978 _this.bottomRightCorner(other.rows(), new_cols) = other.rightCols(new_cols);
984 tmp.block(0, 0, common_rows, common_cols) = _this.block(0, 0, common_rows, common_cols);
#define EIGEN_STATIC_ASSERT_DYNAMIC_SIZE(TYPE)
Definition: StaticAssert.h:45
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:192
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void swap(DenseBase< OtherDerived > &other)
Override DenseBase::swap() since for dynamic-sized matrices of same type it is enough to swap the dat...
Definition: PlainObjectBase.h:898
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:191
Eigen::Matrix< Scalar, Dynamic, Dynamic, ColMajor > tmp
Definition: level3_impl.h:365
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T mini(const T &x, const T &y)
Definition: MathFunctions.h:920
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
static constexpr bool IsRelocatable
Definition: PlainObjectBase.h:932