diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-10-29 13:13:39 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-10-29 13:13:39 -0700 |
commit | ac142773a74120d65b323704a902761a9b7375aa (patch) | |
tree | b21d94b3eec8c88b7d7b411c1cd812aa7edb97a0 /Eigen/src/Core/PlainObjectBase.h | |
parent | 05a0ee25dfcf5f16347e7e8a8903f91b89d48166 (diff) |
Don't call internal::check_rows_cols_for_overflow twice in PlainObjectBase::resize since this is extremely expensive for small arrays
Diffstat (limited to 'Eigen/src/Core/PlainObjectBase.h')
-rw-r--r-- | Eigen/src/Core/PlainObjectBase.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 48e29ebdc..6f1350dc0 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -263,7 +263,6 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type m_storage.resize(size, rows, cols); if(size_changed) EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED #else - internal::check_rows_cols_for_overflow<MaxSizeAtCompileTime>::run(rows, cols); m_storage.resize(rows*cols, rows, cols); #endif } |