Fix bug in MatrixBase::setIdentity(int, int).

This commit is contained in:
Jitse Niesen 2010-01-20 12:07:46 +00:00
parent e0c2c6385f
commit e78e3cd41b

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();
}