Lines Matching refs:m1
27 MatrixType m1 = MatrixType::Random(rows, cols);
30 MatrixType m1_r = m1.reverse();
34 VERIFY_IS_APPROX(m1_r(i, j), m1(rows - 1 - i, cols - 1 - j));
38 Reverse<MatrixType> m1_rd(m1);
42 VERIFY_IS_APPROX(m1_rd(i, j), m1(rows - 1 - i, cols - 1 - j));
46 Reverse<MatrixType, BothDirections> m1_rb(m1);
50 VERIFY_IS_APPROX(m1_rb(i, j), m1(rows - 1 - i, cols - 1 - j));
54 Reverse<MatrixType, Vertical> m1_rv(m1);
58 VERIFY_IS_APPROX(m1_rv(i, j), m1(rows - 1 - i, j));
62 Reverse<MatrixType, Horizontal> m1_rh(m1);
66 VERIFY_IS_APPROX(m1_rh(i, j), m1(i, cols - 1 - j));
76 MatrixType m1_cr = m1.colwise().reverse();
80 VERIFY_IS_APPROX(m1_cr(i, j), m1(rows - 1 - i, j));
84 MatrixType m1_rr = m1.rowwise().reverse();
88 VERIFY_IS_APPROX(m1_rr(i, j), m1(i, cols - 1 - j));
97 m1.reverse()(r, c) = x;
98 VERIFY_IS_APPROX(x, m1(rows - 1 - r, cols - 1 - c));
101 m1.colwise().reverse()(r, c) = x;
102 VERIFY_IS_APPROX(x, m1(rows - 1 - r, c));
104 m1.rowwise().reverse()(r, c) = x;
105 VERIFY_IS_APPROX(x, m1(r, cols - 1 - c));