diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2016-02-10 13:03:07 -0800 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2016-02-10 13:03:07 -0800 |
commit | b6fdf7468c7030a540e042106cf9df9b44dccf43 (patch) | |
tree | 05104afa4de210b68ce177a93cb14d1119d72883 | |
parent | bb8811c6555cd62cff333bce3927b3b647a8c5ea (diff) |
Rename inverse -> pseudoInverse.
-rw-r--r-- | Eigen/src/QR/CompleteOrthogonalDecomposition.h | 4 | ||||
-rw-r--r-- | 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<CompleteOrthogonalDecomposition> inverse() const + inline const Inverse<CompleteOrthogonalDecomposition> pseudoInverse() const { return Inverse<CompleteOrthogonalDecomposition>(*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); } |