Lines Matching refs:MatrixType
14 template<typename MatrixType> void qr()
16 typedef typename MatrixType::Index Index;
21 typedef typename MatrixType::Scalar Scalar;
22 typedef typename MatrixType::RealScalar RealScalar;
23 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> MatrixQType;
24 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
25 MatrixType m1;
27 ColPivHouseholderQR<MatrixType> qr(m1);
37 MatrixType r = qr.matrixQR().template triangularView<Upper>();
38 MatrixType c = q * r * qr.colsPermutation().inverse();
41 MatrixType m2 = MatrixType::Random(cols,cols2);
42 MatrixType m3 = m1*m2;
43 m2 = MatrixType::Random(cols,cols2);
48 template<typename MatrixType, int Cols2> void qr_fixedsize()
50 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };
51 typedef typename MatrixType::Scalar Scalar;
73 template<typename MatrixType> void qr_invertible()
75 typedef typename NumTraits<typename MatrixType::Scalar>::Real RealScalar;
76 typedef typename MatrixType::Scalar Scalar;
80 MatrixType m1(size, size), m2(size, size), m3(size, size);
81 m1 = MatrixType::Random(size,size);
86 MatrixType a = MatrixType::Random(size,size*2);
90 ColPivHouseholderQR<MatrixType> qr(m1);
91 m3 = MatrixType::Random(size,size);
106 template<typename MatrixType> void qr_verify_assert()
108 MatrixType tmp;
110 ColPivHouseholderQR<MatrixType> qr;