diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-17 09:40:52 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-17 09:40:52 -0400 |
commit | 8356bc8d067d0f291284b256c515b1be0766856c (patch) | |
tree | a8dec076bc6fc541e45d305cf5cc73e270c21def /Eigen/src | |
parent | cd3a9d1ccba8547378e993538d3347705ad950f1 (diff) |
add jacobiSvd() method, update test & docs
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/MatrixBase.h | 2 | ||||
-rw-r--r-- | Eigen/src/SVD/JacobiSVD.h | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index f324a0870..e6091313d 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -331,6 +331,8 @@ template<typename Derived> class MatrixBase /////////// SVD module /////////// + JacobiSVD<PlainObject> jacobiSvd(unsigned int computationOptions = 0) const; + /////////// Geometry module /////////// template<typename OtherDerived> diff --git a/Eigen/src/SVD/JacobiSVD.h b/Eigen/src/SVD/JacobiSVD.h index f12494dbc..b130ed4db 100644 --- a/Eigen/src/SVD/JacobiSVD.h +++ b/Eigen/src/SVD/JacobiSVD.h @@ -657,4 +657,13 @@ struct ei_solve_retval<JacobiSVD<_MatrixType, QRPreconditioner>, Rhs> } }; +template<typename Derived> +JacobiSVD<typename MatrixBase<Derived>::PlainObject> +MatrixBase<Derived>::jacobiSvd(unsigned int computationOptions) const +{ + return JacobiSVD<PlainObject>(*this, computationOptions); +} + + + #endif // EIGEN_JACOBISVD_H |