Home | History | Annotate | Download | only in test

Lines Matching defs:qr

12 #include <Eigen/QR>
14 template<typename MatrixType> void qr()
27 ColPivHouseholderQR<MatrixType> qr(m1);
28 VERIFY(rank == qr.rank());
29 VERIFY(cols - qr.rank() == qr.dimensionOfKernel());
30 VERIFY(!qr.isInjective());
31 VERIFY(!qr.isInvertible());
32 VERIFY(!qr.isSurjective());
34 MatrixQType q = qr.householderQ();
37 MatrixType r = qr.matrixQR().template triangularView<Upper>();
38 MatrixType c = q * r * qr.colsPermutation().inverse();
44 m2 = qr.solve(m3);
55 ColPivHouseholderQR<Matrix<Scalar,Rows,Cols> > qr(m1);
56 VERIFY(rank == qr.rank());
57 VERIFY(Cols - qr.rank() == qr.dimensionOfKernel());
58 VERIFY(qr.isInjective() == (rank == Rows));
59 VERIFY(qr.isSurjective() == (rank == Cols));
60 VERIFY(qr.isInvertible() == (qr.isInjective() && qr.isSurjective()));
62 Matrix<Scalar,Rows,Cols> r = qr.matrixQR().template triangularView<Upper>();
63 Matrix<Scalar,Rows,Cols> c = qr.householderQ() * r * qr.colsPermutation().inverse();
69 m2 = qr.solve(m3);
90 ColPivHouseholderQR<MatrixType> qr(m1);
92 m2 = qr.solve(m3);
99 m3 = qr.householderQ(); // get a unitary
101 qr.compute(m1);
102 VERIFY_IS_APPROX(absdet, qr.absDeterminant());
103 VERIFY_IS_APPROX(internal::log(absdet), qr.logAbsDeterminant());
110 ColPivHouseholderQR<MatrixType> qr;
111 VERIFY_RAISES_ASSERT(qr.matrixQR())
112 VERIFY_RAISES_ASSERT(qr.solve(tmp))
113 VERIFY_RAISES_ASSERT(qr.householderQ())
114 VERIFY_RAISES_ASSERT(qr.dimensionOfKernel())
115 VERIFY_RAISES_ASSERT(qr.isInjective())
116 VERIFY_RAISES_ASSERT(qr.isSurjective())
117 VERIFY_RAISES_ASSERT(qr.isInvertible())
118 VERIFY_RAISES_ASSERT(qr.inverse())
119 VERIFY_RAISES_ASSERT(qr.absDeterminant())
120 VERIFY_RAISES_ASSERT(qr.logAbsDeterminant())
126 CALL_SUBTEST_1( qr<MatrixXf>() );
127 CALL_SUBTEST_2( qr<MatrixXd>() );
128 CALL_SUBTEST_3( qr<MatrixXcd>() );