Lines Matching refs:cols
24 Index cols = m.cols();
26 MatrixType m1 = MatrixType::Random(rows, cols),
28 m2 = MatrixType::Random(rows, cols),
29 m3(rows, cols),
30 ones = MatrixType::Ones(rows, cols);
37 Index c1 = internal::random<Index>(0,cols-1);
38 Index c2 = internal::random<Index>(c1,cols-1);
58 RowVectorType br1(m1.block(r1,0,1,cols));
71 if (rows>=5 && cols>=8)
100 VERIFY(internal::real(ones.row(r1).sum()) == RealScalar(cols));
103 VERIFY(internal::real(ones.row(r1).dot(ones.row(r2))) == RealScalar(cols));
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)) );
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)) );
125 dm = m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2);
126 VERIFY_IS_EQUAL(dm, (m1.block(r2,c2,rows-r2,cols-c2)));
155 Index cols = m.cols();
163 for(int j=0;j<cols;++j)
169 for(int j=0;j<cols;++j)
189 Index cols = m.cols();
193 Index c1 = internal::random<Index>(0,cols-1);
194 Index c2 = internal::random<Index>(c1,cols-1);
196 MatrixType m1 = MatrixType::Random(rows, cols);