Home | History | Annotate | Download | only in test

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));
137 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)) );
144 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)) );
154 dm = m1.block(r1,c1,rows-r1,cols-c1).block(r2-r1,c2-c1,rows-r2,cols-c2);
155 VERIFY_IS_EQUAL(dm, (m1.block(r2,c2,rows-r2,cols-c2)));
184 Index cols = m.cols();
192 for(int j=0;j<cols;++j)
198 for(int j=0;j<cols;++j)
218 Index cols = m.cols();
222 Index c1 = internal::random<Index>(0,cols-1);
223 Index c2 = internal::random<Index>(c1,cols-1);
225 MatrixType m1 = MatrixType::Random(rows, cols);