Lines Matching refs:m2

26              m2 = MatrixType::Random(rows, cols),  in triangular_square()  local
34 MatrixType m2up = m2.template triangularView<Upper>(); in triangular_square()
40 VERIFY(!m2.isLowerTriangular()); in triangular_square()
54 m1.template triangularView<Upper>() = m2.transpose() + m2; in triangular_square()
55 m3 = m2.transpose() + m2; in triangular_square()
60 m1.template triangularView<Lower>() = m2.transpose() + m2; in triangular_square()
83 …VERIFY(m2.isApprox(m3.adjoint() * (m1.adjoint().template triangularView<Lower>().solve(m2)), large… in triangular_square()
85 …VERIFY(m2.isApprox(m3.transpose() * (m1.transpose().template triangularView<Upper>().solve(m2)), l… in triangular_square()
87 VERIFY(m2.isApprox(m3 * (m1.template triangularView<Upper>().solve(m2)), largerEps)); in triangular_square()
89 …VERIFY(m2.isApprox(m3.conjugate() * (m1.conjugate().template triangularView<Lower>().solve(m2)), l… in triangular_square()
104 VERIFY(m2.isApprox(m3 * (m1.template triangularView<UnitUpper>().solve(m2)), largerEps)); in triangular_square()
111 m2.setZero(); in triangular_square()
112 m2.template triangularView<Upper>().swap(m1); in triangular_square()
115 VERIFY_IS_APPROX(m2,m3); in triangular_square()
131 m2 = MatrixType::Random(rows, cols), in triangular_rect() local
138 MatrixType m2up = m2.template triangularView<Upper>(); in triangular_rect()
144 VERIFY(!m2.isLowerTriangular()); in triangular_rect()
156 m1.template triangularView<Upper>() = 3 * m2; in triangular_rect()
157 m3 = 3 * m2; in triangular_rect()
162 m1.template triangularView<Lower>() = 3 * m2; in triangular_rect()
166 m1.template triangularView<StrictlyUpper>() = 3 * m2; in triangular_rect()
171 m1.template triangularView<StrictlyLower>() = 3 * m2; in triangular_rect()
174 m2 = m1.template triangularView<Upper>(); in triangular_rect()
175 VERIFY(m2.isUpperTriangular()); in triangular_rect()
176 VERIFY(!m2.isLowerTriangular()); in triangular_rect()
177 m2 = m1.template triangularView<StrictlyUpper>(); in triangular_rect()
178 VERIFY(m2.isUpperTriangular()); in triangular_rect()
179 VERIFY(m2.diagonal().isMuchSmallerThan(RealScalar(1))); in triangular_rect()
180 m2 = m1.template triangularView<UnitUpper>(); in triangular_rect()
181 VERIFY(m2.isUpperTriangular()); in triangular_rect()
182 m2.diagonal().array() -= Scalar(1); in triangular_rect()
183 VERIFY(m2.diagonal().isMuchSmallerThan(RealScalar(1))); in triangular_rect()
184 m2 = m1.template triangularView<Lower>(); in triangular_rect()
185 VERIFY(m2.isLowerTriangular()); in triangular_rect()
186 VERIFY(!m2.isUpperTriangular()); in triangular_rect()
187 m2 = m1.template triangularView<StrictlyLower>(); in triangular_rect()
188 VERIFY(m2.isLowerTriangular()); in triangular_rect()
189 VERIFY(m2.diagonal().isMuchSmallerThan(RealScalar(1))); in triangular_rect()
190 m2 = m1.template triangularView<UnitLower>(); in triangular_rect()
191 VERIFY(m2.isLowerTriangular()); in triangular_rect()
192 m2.diagonal().array() -= Scalar(1); in triangular_rect()
193 VERIFY(m2.diagonal().isMuchSmallerThan(RealScalar(1))); in triangular_rect()
196 m2.setZero(); in triangular_rect()
197 m2.template triangularView<Upper>().swap(m1); in triangular_rect()
200 VERIFY_IS_APPROX(m2,m3); in triangular_rect()