Lines Matching defs:qr
12 #include <Eigen/QR>
14 template<typename MatrixType> void qr()
26 FullPivHouseholderQR<MatrixType> qr(m1);
27 VERIFY(rank == qr.rank());
28 VERIFY(cols - qr.rank() == qr.dimensionOfKernel());
29 VERIFY(!qr.isInjective());
30 VERIFY(!qr.isInvertible());
31 VERIFY(!qr.isSurjective());
33 MatrixType r = qr.matrixQR();
35 MatrixQType q = qr.matrixQ();
41 MatrixType c = qr.matrixQ() * r * qr.colsPermutation().inverse();
48 m2 = qr.solve(m3);
69 FullPivHouseholderQR<MatrixType> qr(m1);
70 VERIFY(qr.isInjective());
71 VERIFY(qr.isInvertible());
72 VERIFY(qr.isSurjective());
75 m2 = qr.solve(m3);
82 m3 = qr.matrixQ(); // get a unitary
84 qr.compute(m1);
85 VERIFY_IS_APPROX(absdet, qr.absDeterminant());
86 VERIFY_IS_APPROX(internal::log(absdet), qr.logAbsDeterminant());
93 FullPivHouseholderQR<MatrixType> qr;
94 VERIFY_RAISES_ASSERT(qr.matrixQR())
95 VERIFY_RAISES_ASSERT(qr.solve(tmp))
96 VERIFY_RAISES_ASSERT(qr.matrixQ())
97 VERIFY_RAISES_ASSERT(qr.dimensionOfKernel())
98 VERIFY_RAISES_ASSERT(qr.isInjective())
99 VERIFY_RAISES_ASSERT(qr.isSurjective())
100 VERIFY_RAISES_ASSERT(qr.isInvertible())
101 VERIFY_RAISES_ASSERT(qr.inverse())
102 VERIFY_RAISES_ASSERT(qr.absDeterminant())
103 VERIFY_RAISES_ASSERT(qr.logAbsDeterminant())
110 // CALL_SUBTEST(qr(Matrix2f()) );
111 CALL_SUBTEST_1( qr<MatrixXf>() );
112 CALL_SUBTEST_2( qr<MatrixXd>() );
113 CALL_SUBTEST_3( qr<MatrixXcd>() );