Lines Matching refs:cols
44 Index cols = m.cols();
46 MatrixType m1 = MatrixType::Random(rows, cols),
48 m2 = MatrixType::Random(rows, cols),
49 m3(rows, cols),
50 ones = MatrixType::Ones(rows, cols);
57 Index c1 = internal::random<Index>(0,cols-1);
58 Index c2 = internal::random<Index>(c1,cols-1);
81 RowVectorType br1(m1.block(r1,0,1,cols));
94 if (rows>=5 && cols>=8)
129 VERIFY(numext::real(ones.row(r1).sum()) == RealScalar(cols));
132 VERIFY(numext::real(ones.row(r1).dot(ones.row(r2))) == RealScalar(cols));
139 VERIFY_IS_EQUAL(m1.topRows(r1).coeff(c1+r1*cols), m1(r1,c1));
145 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)) );
152 VERIFY_IS_APPROX( ((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)) );
162 dm = m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2);
163 VERIFY_IS_EQUAL(dm, (m1.block(r2,c2,rows-r2,cols-c2)));
190 if (rows>=2 && cols>=2)
205 Index cols = m.cols();
213 for(int j=0;j<cols;++j)
219 for(int j=0;j<cols;++j)
239 Index cols = m.cols();
243 Index c1 = internal::random<Index>(0,cols-1);
244 Index c2 = internal::random<Index>(c1,cols-1);
246 MatrixType m1 = MatrixType::Random(rows, cols);