diff options
author | Thomas Capricelli <orzel@freehackers.org> | 2010-03-27 18:58:29 +0100 |
---|---|---|
committer | Thomas Capricelli <orzel@freehackers.org> | 2010-03-27 18:58:29 +0100 |
commit | 0a5c2d8a54bf0bdab7a7c68e824002ba163bbdca (patch) | |
tree | d466a05a6dfc949a2701dc2575b1449dd476c324 /Eigen/src/LU | |
parent | af08770890acdc6f78e9a4730c543b6bd1aadd3a (diff) |
fix misc warnings, more importantly when NDEBUG is defined, assert() is a
nop.
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r-- | Eigen/src/LU/PartialPivLU.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/LU/PartialPivLU.h b/Eigen/src/LU/PartialPivLU.h index 8ff9c5b03..61d59b8cb 100644 --- a/Eigen/src/LU/PartialPivLU.h +++ b/Eigen/src/LU/PartialPivLU.h @@ -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(); |