From 8356bc8d067d0f291284b256c515b1be0766856c Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 17 Oct 2010 09:40:52 -0400 Subject: add jacobiSvd() method, update test & docs --- doc/examples/TutorialLinAlgSVDSolve.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/TutorialLinAlgSVDSolve.cpp b/doc/examples/TutorialLinAlgSVDSolve.cpp index c75779d5f..9fbc031de 100644 --- a/doc/examples/TutorialLinAlgSVDSolve.cpp +++ b/doc/examples/TutorialLinAlgSVDSolve.cpp @@ -10,6 +10,6 @@ int main() cout << "Here is the matrix A:\n" << A << endl; VectorXf b = VectorXf::Random(3); cout << "Here is the right hand side b:\n" << b << endl; - JacobiSVD svd(A, ComputeThinU | ComputeThinV); - cout << "The least-squares solution is:\n" << svd.solve(b) << endl; + cout << "The least-squares solution is:\n" + << A.jacobiSvd(ComputeThinU | ComputeThinV).solve(b) << endl; } -- cgit v1.2.3