mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-15 05:05:58 +08:00
avoid 2 redundant calls to resize
This commit is contained in:
parent
dcb395c6f5
commit
016943f870
@ -371,8 +371,7 @@ class DenseStorageBase : public _Base<Derived>
|
|||||||
: m_storage(other.derived().rows() * other.derived().cols(), other.derived().rows(), other.derived().cols())
|
: m_storage(other.derived().rows() * other.derived().cols(), other.derived().rows(), other.derived().cols())
|
||||||
{
|
{
|
||||||
_check_template_params();
|
_check_template_params();
|
||||||
resize(other.rows(), other.cols());
|
Base::operator=(other.derived());
|
||||||
*this = other;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \name Map
|
/** \name Map
|
||||||
|
Loading…
x
Reference in New Issue
Block a user