Lines Matching refs:N2
34 N2 = MatrixType::RowsAtCompileTime>1 ? -1 : 0 in diagonal() enumerator
41 VERIFY(m1.template diagonal<N2>().RowsAtCompileTime == m1.diagonal(N2).size()); in diagonal()
50 m2.template diagonal<N2>() = 2 * m1.template diagonal<N2>(); in diagonal()
51 m2.template diagonal<N2>()[0] *= 3; in diagonal()
52 …VERIFY_IS_APPROX(m2.template diagonal<N2>()[0], static_cast<Scalar>(6) * m1.template diagonal<N2>(… in diagonal()
59 m2.diagonal(N2) = 2 * m1.diagonal(N2); in diagonal()
60 VERIFY_IS_APPROX(m2.template diagonal<N2>(), static_cast<Scalar>(2) * m1.diagonal(N2)); in diagonal()
61 m2.diagonal(N2)[0] *= 3; in diagonal() local
62 VERIFY_IS_APPROX(m2.diagonal(N2)[0], static_cast<Scalar>(6) * m1.diagonal(N2)[0]); in diagonal()
64 m2.diagonal(N2).x() = s1; in diagonal()
65 VERIFY_IS_APPROX(m2.diagonal(N2).x(), s1); in diagonal()
66 m2.diagonal(N2).coeffRef(0) = Scalar(2)*s1; in diagonal()
67 VERIFY_IS_APPROX(m2.diagonal(N2).coeff(0), Scalar(2)*s1); in diagonal()