fix compilation with EIGEN_NO_DEBUG

This commit is contained in:
Gael Guennebaud 2011-12-09 23:42:39 +01:00
parent 38277e8a9b
commit d400a6245e

View File

@ -4,7 +4,7 @@
// Copyright (C) 2008-2011 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2008-2011 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2009 Keir Mierle <mierle@gmail.com> // Copyright (C) 2009 Keir Mierle <mierle@gmail.com>
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2011 Timothy E. Holy <tim.holy@gmail.com> // Copyright (C) 2011 Timothy E. Holy <tim.holy@gmail.com >
// //
// Eigen is free software; you can redistribute it and/or // Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public // modify it under the terms of the GNU Lesser General Public
@ -456,7 +456,9 @@ LDLT<MatrixType,_UpLo>& LDLT<MatrixType,_UpLo>::rankUpdate(const MatrixBase<Deri
{ {
const Index size = w.rows(); const Index size = w.rows();
if (m_isInitialized) if (m_isInitialized)
{
eigen_assert(m_matrix.rows()==size); eigen_assert(m_matrix.rows()==size);
}
else else
{ {
m_matrix.resize(size,size); m_matrix.resize(size,size);