diff options
Diffstat (limited to 'test/qr_colpivoting.cpp')
-rw-r--r-- | test/qr_colpivoting.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/qr_colpivoting.cpp b/test/qr_colpivoting.cpp index 16f80d8b5..d8672ce33 100644 --- a/test/qr_colpivoting.cpp +++ b/test/qr_colpivoting.cpp @@ -57,6 +57,9 @@ void cod() { JacobiSVD<MatrixType> svd(matrix, ComputeThinU | ComputeThinV); MatrixType svd_solution = svd.solve(rhs); VERIFY_IS_APPROX(cod_solution, svd_solution); + + MatrixType pinv = cod.inverse(); + VERIFY_IS_APPROX(cod_solution, pinv * rhs); } template <typename MatrixType, int Cols2> |