From e093b43b2c40f00495937c3134bf55ba29676993 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 6 Jul 2009 17:12:10 +0200 Subject: * rename QR to HouseholderQR because really that impacts the API, not just the impl. * rename qr() to householderQr(), for same reason. * clarify that it's non-pivoting, non-rank-revealing, so remove all the rank API, make solve() be void instead of bool, update the docs/test, etc. * fix warning in SVD --- doc/eigendoxy_header.html.in | 2 +- doc/snippets/HouseholderQR_solve.cpp | 9 +++++++++ doc/snippets/QR_solve.cpp | 14 -------------- 3 files changed, 10 insertions(+), 15 deletions(-) create mode 100644 doc/snippets/HouseholderQR_solve.cpp delete mode 100644 doc/snippets/QR_solve.cpp (limited to 'doc') diff --git a/doc/eigendoxy_header.html.in b/doc/eigendoxy_header.html.in index 97cafd41d..572c47158 100644 --- a/doc/eigendoxy_header.html.in +++ b/doc/eigendoxy_header.html.in @@ -6,5 +6,5 @@ \ No newline at end of file diff --git a/doc/snippets/HouseholderQR_solve.cpp b/doc/snippets/HouseholderQR_solve.cpp new file mode 100644 index 000000000..aa9404951 --- /dev/null +++ b/doc/snippets/HouseholderQR_solve.cpp @@ -0,0 +1,9 @@ +typedef Matrix Matrix3x3; +Matrix3x3 m = Matrix3x3::Random(); +Matrix3f y = Matrix3f::Random(); +cout << "Here is the matrix m:" << endl << m << endl; +cout << "Here is the matrix y:" << endl << y << endl; +Matrix3f x; +m.householderQr().solve(y, &x)); +assert(y.isApprox(m*x)); +cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; diff --git a/doc/snippets/QR_solve.cpp b/doc/snippets/QR_solve.cpp deleted file mode 100644 index 7e629f851..000000000 --- a/doc/snippets/QR_solve.cpp +++ /dev/null @@ -1,14 +0,0 @@ -typedef Matrix Matrix3x3; -Matrix3x3 m = Matrix3x3::Random(); -Matrix3f y = Matrix3f::Random(); -cout << "Here is the matrix m:" << endl << m << endl; -cout << "Here is the matrix y:" << endl << y << endl; -Matrix3f x; -if(m.qr().solve(y, &x)) -{ - assert(y.isApprox(m*x)); - cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; -} -else - cout << "The equation mx=y does not have any solution." << endl; - -- cgit v1.2.3