Lines Matching refs:diagonal

12 template<typename MatrixType> void diagonal(const MatrixType& m)  in diagonal()  function
24 VERIFY_IS_APPROX(m1.diagonal(), m1.transpose().diagonal()); in diagonal()
25 m2.diagonal() = 2 * m1.diagonal(); in diagonal()
26 m2.diagonal()[0] *= 3; in diagonal()
38 VERIFY(m1.template diagonal<N1>().RowsAtCompileTime == m1.diagonal(N1).size()); in diagonal()
39 VERIFY(m1.template diagonal<N2>().RowsAtCompileTime == m1.diagonal(N2).size()); in diagonal()
42 m2.template diagonal<N1>() = 2 * m1.template diagonal<N1>(); in diagonal()
43 VERIFY_IS_APPROX(m2.template diagonal<N1>(), static_cast<Scalar>(2) * m1.diagonal(N1)); in diagonal()
44 m2.template diagonal<N1>()[0] *= 3; in diagonal()
45 …VERIFY_IS_APPROX(m2.template diagonal<N1>()[0], static_cast<Scalar>(6) * m1.template diagonal<N1>(… in diagonal()
48 m2.template diagonal<N2>() = 2 * m1.template diagonal<N2>(); in diagonal()
49 m2.template diagonal<N2>()[0] *= 3; in diagonal()
50 …VERIFY_IS_APPROX(m2.template diagonal<N2>()[0], static_cast<Scalar>(6) * m1.template diagonal<N2>(… in diagonal()
52 m2.diagonal(N1) = 2 * m1.diagonal(N1); in diagonal()
53 VERIFY_IS_APPROX(m2.template diagonal<N1>(), static_cast<Scalar>(2) * m1.diagonal(N1)); in diagonal()
54 m2.diagonal(N1)[0] *= 3; in diagonal()
55 VERIFY_IS_APPROX(m2.diagonal(N1)[0], static_cast<Scalar>(6) * m1.diagonal(N1)[0]); in diagonal()
57 m2.diagonal(N2) = 2 * m1.diagonal(N2); in diagonal()
58 VERIFY_IS_APPROX(m2.template diagonal<N2>(), static_cast<Scalar>(2) * m1.diagonal(N2)); in diagonal()
59 m2.diagonal(N2)[0] *= 3; in diagonal()
60 VERIFY_IS_APPROX(m2.diagonal(N2)[0], static_cast<Scalar>(6) * m1.diagonal(N2)[0]); in diagonal()
67 CALL_SUBTEST_1( diagonal(Matrix<float, 1, 1>()) ); in test_diagonal()
68 CALL_SUBTEST_1( diagonal(Matrix<float, 4, 9>()) ); in test_diagonal()
69 CALL_SUBTEST_1( diagonal(Matrix<float, 7, 3>()) ); in test_diagonal()
70 CALL_SUBTEST_2( diagonal(Matrix4d()) ); in test_diagonal()
71 …CALL_SUBTEST_2( diagonal(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<… in test_diagonal()
72 …CALL_SUBTEST_2( diagonal(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<i… in test_diagonal()
73 …CALL_SUBTEST_2( diagonal(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<… in test_diagonal()
74 …CALL_SUBTEST_1( diagonal(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<i… in test_diagonal()
75 CALL_SUBTEST_1( diagonal(Matrix<float,Dynamic,4>(3, 4)) ); in test_diagonal()