Lines Matching refs:N2
32 N2 = MatrixType::RowsAtCompileTime>1 ? -1 : 0
39 VERIFY(m1.template diagonal<N2>().RowsAtCompileTime == m1.diagonal(N2).size());
48 m2.template diagonal<N2>() = 2 * m1.template diagonal<N2>();
49 m2.template diagonal<N2>()[0] *= 3;
50 VERIFY_IS_APPROX(m2.template diagonal<N2>()[0], static_cast<Scalar>(6) * m1.template diagonal<N2>()[0]);
57 m2.diagonal(N2) = 2 * m1.diagonal(N2);
58 VERIFY_IS_APPROX(m2.template diagonal<N2>(), static_cast<Scalar>(2) * m1.diagonal(N2));
59 m2.diagonal(N2)[0] *= 3;
60 VERIFY_IS_APPROX(m2.diagonal(N2)[0], static_cast<Scalar>(6) * m1.diagonal(N2)[0]);