From c2f8ecf46683adcab0db05199ee2ebe15e6ada4a Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 4 Aug 2008 04:45:59 +0000 Subject: * LU decomposition, supporting all rectangular matrices, with full pivoting for better numerical stability. For now the only application is determinant. * New determinant unit-test. * Disable most of Swap.h for now as it makes LU fail (mysterious). Anyway Swap needs a big overhaul as proposed on IRC. * Remnants of old class Inverse removed. * Some warnings fixed. --- Eigen/src/Core/Swap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/Swap.h') diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h index 35590b56f..3b864789e 100644 --- a/Eigen/src/Core/Swap.h +++ b/Eigen/src/Core/Swap.h @@ -42,7 +42,9 @@ template void MatrixBase::swap(const MatrixBase& other) { MatrixBase *_other = const_cast*>(&other); - if(SizeAtCompileTime == Dynamic) + + // disable that path: it makes LU decomposition fail ! I can't see the bug though. + if(false /*SizeAtCompileTime == Dynamic*/) { ei_swap_selector::run(derived(),other.const_cast_derived()); } -- cgit v1.2.3