• Home
  • Raw
  • Download

Lines Matching refs:m1

19     CheckMinor(MatrixType& m1, int r1, int c1)  in CheckMinor()
21 int rows = m1.rows(); in CheckMinor()
22 int cols = m1.cols(); in CheckMinor()
24 Matrix<Scalar, Dynamic, Dynamic> mi = m1.minor(0,0).eval(); in CheckMinor()
25 VERIFY_IS_APPROX(mi, m1.block(1,1,rows-1,cols-1)); in CheckMinor()
26 mi = m1.minor(r1,c1); in CheckMinor()
27 VERIFY_IS_APPROX(mi.transpose(), m1.transpose().minor(c1,r1)); in CheckMinor()
29 m1.minor(r1,c1)(0,0) = m1.minor(0,0)(0,0); in CheckMinor()
51 MatrixType m1 = MatrixType::Random(rows, cols), in submatrices() local
73 VERIFY_IS_APPROX(m1.col(c1).transpose(), m1.transpose().row(c1)); in submatrices()
74 VERIFY_IS_APPROX(square.row(r1).eigen2_dot(m1.col(c1)), (square.lazy() * m1.conjugate())(r1,c1)); in submatrices()
76 m1.row(r1) += s1 * m1.row(r2); in submatrices()
77 m1.col(c1) += s1 * m1.col(c2); in submatrices()
80 Matrix<Scalar,Dynamic,Dynamic> b1(1,1); b1(0,0) = m1(r1,c1); in submatrices()
81 RowVectorType br1(m1.block(r1,0,1,cols)); in submatrices()
82 VectorType bc1(m1.block(0,c1,rows,1)); in submatrices()
83 VERIFY_IS_APPROX(b1, m1.block(r1,c1,1,1)); in submatrices()
84 VERIFY_IS_APPROX(m1.row(r1), br1); in submatrices()
85 VERIFY_IS_APPROX(m1.col(c1), bc1); in submatrices()
87 m1.block(r1,c1,r2-r1+1,c2-c1+1) = s1 * m2.block(0, 0, r2-r1+1,c2-c1+1); in submatrices()
88 m1.block(r1,c1,r2-r1+1,c2-c1+1)(r2-r1,c2-c1) = m2.block(0, 0, r2-r1+1,c2-c1+1)(0,0); in submatrices()
91 …CheckMinor<Scalar, MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime> checkminor(m1,r1,… in submatrices()
94 VERIFY_IS_APPROX(m1.diagonal(), m1.transpose().diagonal()); in submatrices()
95 m2.diagonal() = 2 * m1.diagonal(); in submatrices()
97 VERIFY_IS_APPROX(m2.diagonal()[0], static_cast<Scalar>(6) * m1.diagonal()[0]); in submatrices()
106 m1.template block<BlockRows,BlockCols>(1,1) *= s1; in submatrices()
108 m1.template block<BlockRows,BlockCols>(1,1)(0, 3) = m1.template block<2,5>(1,1)(1,2); in submatrices()
110 Matrix<Scalar,Dynamic,Dynamic> b = m1.template block<BlockRows,BlockCols>(3,3); in submatrices()
111 VERIFY_IS_APPROX(b, m1.block(3,3,BlockRows,BlockCols)); in submatrices()