fix misc warnings, more importantly when NDEBUG is defined, assert() is a

nop.
This commit is contained in:
Thomas Capricelli
2010-03-27 18:58:29 +01:00
parent af08770890
commit 0a5c2d8a54
4 changed files with 4 additions and 6 deletions

View File

@@ -439,8 +439,7 @@ struct ei_solve_retval<PartialPivLU<_MatrixType>, Rhs>
* Step 3: replace c by the solution x to Ux = c.
*/
const int size = dec().matrixLU().rows();
ei_assert(rhs().rows() == size);
ei_assert(rhs().rows() == dec().matrixLU().rows());
// Step 1
dst = dec().permutationP() * rhs();