mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -170,8 +170,7 @@ struct ei_compute_inverse
|
||||
{
|
||||
static inline void run(const MatrixType& matrix, MatrixType* result)
|
||||
{
|
||||
LU<MatrixType> lu(matrix);
|
||||
lu.computeInverse(result);
|
||||
matrix.partialLu().computeInverse(result);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user