aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/QR
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-07-02 16:33:32 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-07-02 16:33:32 +0200
commit9a97dac4d91ee20c0bbdef39270d5a1bc743c20e (patch)
tree35244a766b23b48d6332b7bc4f307570fa0ae59d /Eigen/src/QR
parenteee34f2da4039adaba5016e1498c3700e6e3e927 (diff)
Doc: add an example for HouseholderQR::householderQ()
Diffstat (limited to 'Eigen/src/QR')
-rw-r--r--Eigen/src/QR/HouseholderQR.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Eigen/src/QR/HouseholderQR.h b/Eigen/src/QR/HouseholderQR.h
index 59f6fcaa2..970672832 100644
--- a/Eigen/src/QR/HouseholderQR.h
+++ b/Eigen/src/QR/HouseholderQR.h
@@ -128,6 +128,14 @@ template<typename _MatrixType> class HouseholderQR
return internal::solve_retval<HouseholderQR, Rhs>(*this, b.derived());
}
+ /** This method returns an expression of the unitary matrix Q as a sequence of Householder transformations.
+ *
+ * The returned expression can directly be used to perform matrix products. It can also be assigned to a dense Matrix object.
+ * Here is an example showing how to recover the full or thin matrix Q, as well as how to perform matrix products using operator*:
+ *
+ * Example: \include HouseholderQR_householderQ.cpp
+ * Output: \verbinclude HouseholderQR_householderQ.out
+ */
HouseholderSequenceType householderQ() const
{
eigen_assert(m_isInitialized && "HouseholderQR is not initialized.");