Lines Matching defs:c1
37 Index c1 = internal::random<Index>(0,cols-1);
38 Index c2 = internal::random<Index>(c1,cols-1);
41 VERIFY_IS_EQUAL(m1.col(c1).transpose(), m1.transpose().row(c1));
50 m1.col(c1) += s1 * m1_copy.col(c2);
51 VERIFY_IS_APPROX(m1.col(c1), m1_copy.col(c1) + s1 * m1_copy.col(c2));
52 m1.col(c1).col(0) += s1 * m1_copy.col(c2);
53 VERIFY_IS_APPROX(m1.col(c1), m1_copy.col(c1) + Scalar(2) * s1 * m1_copy.col(c2));
56 Matrix<Scalar,Dynamic,Dynamic> b1(1,1); b1(0,0) = m1(r1,c1);
59 VectorType bc1(m1.block(0,c1,rows,1));
60 VERIFY_IS_EQUAL(b1, m1.block(r1,c1,1,1));
62 VERIFY_IS_EQUAL(m1.col(c1), bc1);
64 m1.block(r1,c1,r2-r1+1,c2-c1+1) = s1 * m2.block(0, 0, r2-r1+1,c2-c1+1);
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);
99 VERIFY(internal::real(ones.col(c1).sum()) == RealScalar(rows));
102 VERIFY(internal::real(ones.col(c1).dot(ones.col(c2))) == RealScalar(rows));
108 VERIFY_IS_EQUAL( (m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2)) , (m1.block(r2,c2,rows-r2,cols-c2)) );
109 VERIFY_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).row(0)) , (m1.row(r1).segment(c1,c2-c1+1)) );
110 VERIFY_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).col(0)) , (m1.col(c1).segment(r1,r2-r1+1)) );
111 VERIFY_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0)) , (m1.row(r1).segment(c1,c2-c1+1)).transpose() );
112 VERIFY_IS_EQUAL( (m1.transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0)) , (m1.row(r1).segment(c1,c2-c1+1)).transpose() );
115 VERIFY_IS_EQUAL( ((m1+m2).block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2)) , ((m1+m2).block(r2,c2,rows-r2,cols-c2)) );
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+1)) );
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+1)) );
118 VERIFY_IS_EQUAL( ((m1+m2).block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0)) , ((m1+m2).row(r1).segment(c1,c2-c1+1)).transpose() );
119 VERIFY_IS_EQUAL( ((m1+m2).transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0)) , ((m1+m2).row(r1).segment(c1,c2-c1+1)).transpose() );
125 dm = m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2);
129 dm = m1.block(r1,c1,r2-r1+1,c2-c1+1).row(0).transpose();
130 dv = m1.row(r1).segment(c1,c2-c1+1);
134 dm = m1.col(c1).segment(r1,r2-r1+1);
135 dv = m1.block(r1,c1,r2-r1+1,c2-c1+1).col(0);
139 dm = m1.block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0);
140 dv = m1.row(r1).segment(c1,c2-c1+1);
144 dm = m1.row(r1).segment(c1,c2-c1+1).transpose();
145 dv = m1.transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0);
193 Index c1 = internal::random<Index>(0,cols-1);
194 Index c2 = internal::random<Index>(c1,cols-1);
197 compare_using_data_and_stride(m1.block(r1, c1, r2-r1+1, c2-c1+1));
198 compare_using_data_and_stride(m1.transpose().block(c1, r1, c2-c1+1, r2-r1+1));
200 compare_using_data_and_stride(m1.col(c1));
202 compare_using_data_and_stride(m1.col(c1).transpose());