aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/LU/PartialPivLU.h
diff options
context:
space:
mode:
authorGravatar Thomas Capricelli <orzel@freehackers.org>2010-03-27 18:58:29 +0100
committerGravatar Thomas Capricelli <orzel@freehackers.org>2010-03-27 18:58:29 +0100
commit0a5c2d8a54bf0bdab7a7c68e824002ba163bbdca (patch)
treed466a05a6dfc949a2701dc2575b1449dd476c324 /Eigen/src/LU/PartialPivLU.h
parentaf08770890acdc6f78e9a4730c543b6bd1aadd3a (diff)
fix misc warnings, more importantly when NDEBUG is defined, assert() is a
nop.
Diffstat (limited to 'Eigen/src/LU/PartialPivLU.h')
-rw-r--r--Eigen/src/LU/PartialPivLU.h3
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();