Add partial pivoting runtime option to LU.

Note: in fact, inverse() always uses partial pivoting because the algo
currently used doesn't make sense with complete pivoting. No num
stability issue so far even with size 200x200. If there is any problem
we can of course reimplement inverse on top of LU.
This commit is contained in:
Benoit Jacob
2008-08-05 15:43:11 +00:00
parent e741b7beca
commit 09ef7db9d9
3 changed files with 74 additions and 31 deletions

View File

@@ -526,7 +526,7 @@ template<typename Derived> class MatrixBase
/////////// LU module ///////////
const LU<EvalType> lu() const;
const LU<EvalType> lu(int pivoting) const;
const EvalType inverse() const;
void computeInverse(EvalType *result) const;
Scalar determinant() const;