add partial-pivoting LU decomposition

the name 'PartialLU' is not meant to be definitive!
make inverse() and determinant() use it, so it's *almost* considered
well tested.
This commit is contained in:
Benoit Jacob
2009-05-13 02:02:22 +00:00
parent 877c3c00a2
commit 7c14e1eac4
6 changed files with 267 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ template<typename Derived,
{
static inline typename ei_traits<Derived>::Scalar run(const Derived& m)
{
return m.lu().determinant();
return m.partialLu().determinant();
}
};