From b6fdf7468c7030a540e042106cf9df9b44dccf43 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 10 Feb 2016 13:03:07 -0800 Subject: [PATCH] Rename inverse -> pseudoInverse. --- Eigen/src/QR/CompleteOrthogonalDecomposition.h | 4 ++-- test/qr_colpivoting.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/QR/CompleteOrthogonalDecomposition.h b/Eigen/src/QR/CompleteOrthogonalDecomposition.h index 9bc768b7c..e71944fd7 100644 --- a/Eigen/src/QR/CompleteOrthogonalDecomposition.h +++ b/Eigen/src/QR/CompleteOrthogonalDecomposition.h @@ -249,10 +249,10 @@ class CompleteOrthogonalDecomposition { /** \returns the pseudo-inverse of the matrix of which *this is the complete * orthogonal decomposition. - * \warning: Do not compute \c this->inverse()*rhs to solve a linear systems. + * \warning: Do not compute \c this->pseudoInverse()*rhs to solve a linear systems. * It is more efficient and numerically stable to call \c this->solve(rhs). */ - inline const Inverse inverse() const + inline const Inverse pseudoInverse() const { return Inverse(*this); } diff --git a/test/qr_colpivoting.cpp b/test/qr_colpivoting.cpp index d8672ce33..46c54b74f 100644 --- a/test/qr_colpivoting.cpp +++ b/test/qr_colpivoting.cpp @@ -58,7 +58,7 @@ void cod() { MatrixType svd_solution = svd.solve(rhs); VERIFY_IS_APPROX(cod_solution, svd_solution); - MatrixType pinv = cod.inverse(); + MatrixType pinv = cod.pseudoInverse(); VERIFY_IS_APPROX(cod_solution, pinv * rhs); }