factorize default performance related settings to a single file

included after the architecture specific files such that they
can be adapted by each platform.
This commit is contained in:
Gael Guennebaud
2010-03-03 18:47:58 +01:00
parent 112c550b4a
commit 7dd81aad74
5 changed files with 74 additions and 35 deletions

View File

@@ -601,7 +601,7 @@ struct ei_conservative_resize_like_impl<Derived,OtherDerived,true>
const int new_rows = Derived::RowsAtCompileTime==1 ? 1 : other.rows();
const int new_cols = Derived::RowsAtCompileTime==1 ? other.cols() : 1;
_this.derived().m_storage.conservativeResize(other.size(),new_rows,new_cols);
if (num_new_elements > 0)
_this.tail(num_new_elements) = other.tail(num_new_elements);
}