• Home
  • Raw
  • Download

Lines Matching refs:m1

26   MatrixType m1 = MatrixType::Random(rows, cols),  in block()  local
27 m1_copy = m1, in block()
41 VERIFY_IS_EQUAL(m1.col(c1).transpose(), m1.transpose().row(c1)); in block()
43 m1 = m1_copy; in block()
44 m1.row(r1) += s1 * m1_copy.row(r2); in block()
45 VERIFY_IS_APPROX(m1.row(r1), m1_copy.row(r1) + s1 * m1_copy.row(r2)); in block()
47 m1.row(r1).row(0) += s1 * m1_copy.row(r2); in block()
48 VERIFY_IS_APPROX(m1.row(r1), m1_copy.row(r1) + Scalar(2) * s1 * m1_copy.row(r2)); in block()
49 m1 = m1_copy; in block()
50 m1.col(c1) += s1 * m1_copy.col(c2); in block()
51 VERIFY_IS_APPROX(m1.col(c1), m1_copy.col(c1) + s1 * m1_copy.col(c2)); in block()
52 m1.col(c1).col(0) += s1 * m1_copy.col(c2); in block()
53 VERIFY_IS_APPROX(m1.col(c1), m1_copy.col(c1) + Scalar(2) * s1 * m1_copy.col(c2)); in block()
56 Matrix<Scalar,Dynamic,Dynamic> b1(1,1); b1(0,0) = m1(r1,c1); in block()
58 RowVectorType br1(m1.block(r1,0,1,cols)); in block()
59 VectorType bc1(m1.block(0,c1,rows,1)); in block()
60 VERIFY_IS_EQUAL(b1, m1.block(r1,c1,1,1)); in block()
61 VERIFY_IS_EQUAL(m1.row(r1), br1); in block()
62 VERIFY_IS_EQUAL(m1.col(c1), bc1); in block()
64 m1.block(r1,c1,r2-r1+1,c2-c1+1) = s1 * m2.block(0, 0, r2-r1+1,c2-c1+1); in block()
65 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 block()
74 m1.template block<BlockRows,BlockCols>(1,1) *= s1; in block()
76 m1.template block<BlockRows,BlockCols>(1,1)(0, 3) = m1.template block<2,5>(1,1)(1,2); in block()
78 Matrix<Scalar,Dynamic,Dynamic> b = m1.template block<BlockRows,BlockCols>(3,3); in block()
79 VERIFY_IS_EQUAL(b, m1.block(3,3,BlockRows,BlockCols)); in block()
108 …VERIFY_IS_EQUAL( (m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2)) , (m1.block(… in block()
109 VERIFY_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).row(0)) , (m1.row(r1).segment(c1,c2-c1+1)) ); in block()
110 VERIFY_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).col(0)) , (m1.col(c1).segment(r1,r2-r1+1)) ); in block()
111 …VERIFY_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0)) , (m1.row(r1).segment(c1,c2-… in block()
112 …VERIFY_IS_EQUAL( (m1.transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0)) , (m1.row(r1).segment(c1,c2-… in block()
115 …VERIFY_IS_EQUAL( ((m1+m2).block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2)) , ((m1+… in block()
116 …VERIFY_IS_EQUAL( ((m1+m2).block(r1,c1,r2-r1+1,c2-c1+1).row(0)) , ((m1+m2).row(r1).segment(c1,c2-c1… in block()
117 …VERIFY_IS_EQUAL( ((m1+m2).block(r1,c1,r2-r1+1,c2-c1+1).col(0)) , ((m1+m2).col(c1).segment(r1,r2-r1… in block()
118 …VERIFY_IS_EQUAL( ((m1+m2).block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0)) , ((m1+m2).row(r1).segm… in block()
119 …VERIFY_IS_EQUAL( ((m1+m2).transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0)) , ((m1+m2).row(r1).segm… in block()
125 dm = m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2); in block()
126 VERIFY_IS_EQUAL(dm, (m1.block(r2,c2,rows-r2,cols-c2))); in block()
129 dm = m1.block(r1,c1,r2-r1+1,c2-c1+1).row(0).transpose(); in block()
130 dv = m1.row(r1).segment(c1,c2-c1+1); in block()
134 dm = m1.col(c1).segment(r1,r2-r1+1); in block()
135 dv = m1.block(r1,c1,r2-r1+1,c2-c1+1).col(0); in block()
139 dm = m1.block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0); in block()
140 dv = m1.row(r1).segment(c1,c2-c1+1); in block()
144 dm = m1.row(r1).segment(c1,c2-c1+1).transpose(); in block()
145 dv = m1.transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0); in block()
196 MatrixType m1 = MatrixType::Random(rows, cols); in data_and_stride() local
197 compare_using_data_and_stride(m1.block(r1, c1, r2-r1+1, c2-c1+1)); in data_and_stride()
198 compare_using_data_and_stride(m1.transpose().block(c1, r1, c2-c1+1, r2-r1+1)); in data_and_stride()
199 compare_using_data_and_stride(m1.row(r1)); in data_and_stride()
200 compare_using_data_and_stride(m1.col(c1)); in data_and_stride()
201 compare_using_data_and_stride(m1.row(r1).transpose()); in data_and_stride()
202 compare_using_data_and_stride(m1.col(c1).transpose()); in data_and_stride()