Lines Matching full:m1

25   MatrixType m1 = MatrixType::Random(rows, cols),  in triangular_square()  local
33 MatrixType m1up = m1.template triangularView<Upper>(); in triangular_square()
43 // VERIFY_IS_APPROX(m1up.transpose() * m2, m1.upper().transpose().lower() * m2); in triangular_square()
48 r1.template triangularView<Upper>() += m1; in triangular_square()
53 m1.setZero(); in triangular_square()
54 m1.template triangularView<Upper>() = m2.transpose() + m2; in triangular_square()
56 VERIFY_IS_APPROX(m3.template triangularView<Lower>().transpose().toDenseMatrix(), m1); in triangular_square()
59 m1.setZero(); in triangular_square()
60 m1.template triangularView<Lower>() = m2.transpose() + m2; in triangular_square()
61 VERIFY_IS_APPROX(m3.template triangularView<Lower>().toDenseMatrix(), m1); in triangular_square()
66 m1 = MatrixType::Random(rows, cols); in triangular_square()
68 while (numext::abs2(m1(i,i))<1e-1) m1(i,i) = internal::random<Scalar>(); in triangular_square()
72 m3 = m1.template triangularView<Upper>(); in triangular_square()
73 …VERIFY(v2.isApprox(m3.adjoint() * (m1.adjoint().template triangularView<Lower>().solve(v2)), large… in triangular_square()
74 m3 = m1.template triangularView<Lower>(); in triangular_square()
75 …VERIFY(v2.isApprox(m3.transpose() * (m1.transpose().template triangularView<Upper>().solve(v2)), l… in triangular_square()
76 m3 = m1.template triangularView<Upper>(); in triangular_square()
77 VERIFY(v2.isApprox(m3 * (m1.template triangularView<Upper>().solve(v2)), largerEps)); in triangular_square()
78 m3 = m1.template triangularView<Lower>(); in triangular_square()
79 …VERIFY(v2.isApprox(m3.conjugate() * (m1.conjugate().template triangularView<Lower>().solve(v2)), l… in triangular_square()
82 m3 = m1.template triangularView<Upper>(); in triangular_square()
83 …VERIFY(m2.isApprox(m3.adjoint() * (m1.adjoint().template triangularView<Lower>().solve(m2)), large… in triangular_square()
84 m3 = m1.template triangularView<Lower>(); in triangular_square()
85 …VERIFY(m2.isApprox(m3.transpose() * (m1.transpose().template triangularView<Upper>().solve(m2)), l… in triangular_square()
86 m3 = m1.template triangularView<Upper>(); in triangular_square()
87 VERIFY(m2.isApprox(m3 * (m1.template triangularView<Upper>().solve(m2)), largerEps)); in triangular_square()
88 m3 = m1.template triangularView<Lower>(); in triangular_square()
89 …VERIFY(m2.isApprox(m3.conjugate() * (m1.conjugate().template triangularView<Lower>().solve(m2)), l… in triangular_square()
93 m1.transpose().template triangularView<Eigen::Upper>().solveInPlace(trm4); in triangular_square()
94 VERIFY_IS_APPROX(m4 * m1.template triangularView<Eigen::Lower>(), m3); in triangular_square()
97 m3 = m1.template triangularView<Upper>(); in triangular_square()
100 VERIFY_IS_APPROX(m4 * m1.template triangularView<Eigen::Upper>(), m3); in triangular_square()
103 m3 = m1.template triangularView<UnitUpper>(); in triangular_square()
104 VERIFY(m2.isApprox(m3 * (m1.template triangularView<UnitUpper>().solve(m2)), largerEps)); in triangular_square()
106 // VERIFY(( m1.template triangularView<Upper>() in triangular_square()
110 m1.setOnes(); in triangular_square()
112 m2.template triangularView<Upper>().swap(m1); in triangular_square()
130 MatrixType m1 = MatrixType::Random(rows, cols), in triangular_rect() local
137 MatrixType m1up = m1.template triangularView<Upper>(); in triangular_rect()
150 r1.template triangularView<Upper>() += m1; in triangular_rect()
155 m1.setZero(); in triangular_rect()
156 m1.template triangularView<Upper>() = 3 * m2; in triangular_rect()
158 VERIFY_IS_APPROX(m3.template triangularView<Upper>().toDenseMatrix(), m1); in triangular_rect()
161 m1.setZero(); in triangular_rect()
162 m1.template triangularView<Lower>() = 3 * m2; in triangular_rect()
163 VERIFY_IS_APPROX(m3.template triangularView<Lower>().toDenseMatrix(), m1); in triangular_rect()
165 m1.setZero(); in triangular_rect()
166 m1.template triangularView<StrictlyUpper>() = 3 * m2; in triangular_rect()
167 VERIFY_IS_APPROX(m3.template triangularView<StrictlyUpper>().toDenseMatrix(), m1); in triangular_rect()
170 m1.setZero(); in triangular_rect()
171 m1.template triangularView<StrictlyLower>() = 3 * m2; in triangular_rect()
172 VERIFY_IS_APPROX(m3.template triangularView<StrictlyLower>().toDenseMatrix(), m1); in triangular_rect()
173 m1.setRandom(); in triangular_rect()
174 m2 = m1.template triangularView<Upper>(); in triangular_rect()
177 m2 = m1.template triangularView<StrictlyUpper>(); in triangular_rect()
180 m2 = m1.template triangularView<UnitUpper>(); in triangular_rect()
184 m2 = m1.template triangularView<Lower>(); in triangular_rect()
187 m2 = m1.template triangularView<StrictlyLower>(); in triangular_rect()
190 m2 = m1.template triangularView<UnitLower>(); in triangular_rect()
195 m1.setOnes(); in triangular_rect()
197 m2.template triangularView<Upper>().swap(m1); in triangular_rect()