This commit is contained in:
Hauke Heibel
2010-01-20 20:51:42 +01:00
3 changed files with 69 additions and 1 deletions

View File

@@ -681,7 +681,7 @@ EIGEN_STRONG_INLINE Derived& MatrixBase<Derived>::setIdentity()
template<typename Derived>
EIGEN_STRONG_INLINE Derived& MatrixBase<Derived>::setIdentity(int rows, int cols)
{
Base::resize(rows, cols);
derived().resize(rows, cols);
return setIdentity();
}