diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-08-04 04:45:59 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-08-04 04:45:59 +0000 |
commit | c2f8ecf46683adcab0db05199ee2ebe15e6ada4a (patch) | |
tree | 34e909defb2401c96332663c127225be6d08700c /Eigen/src/Core/Swap.h | |
parent | f81dfcf00b8fb26bd21495023799118fa444870a (diff) |
* 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.
Diffstat (limited to 'Eigen/src/Core/Swap.h')
-rw-r--r-- | Eigen/src/Core/Swap.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<typename OtherDerived> void MatrixBase<Derived>::swap(const MatrixBase<OtherDerived>& other) { MatrixBase<OtherDerived> *_other = const_cast<MatrixBase<OtherDerived>*>(&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<Derived,OtherDerived>::run(derived(),other.const_cast_derived()); } |