Lines Matching full:rows
19 const Index rows = ref.rows();
24 double density = (std::max)(8./(rows*cols), 0.01);
31 SparseMatrixType m(rows, cols);
32 DenseMatrix refMat = DenseMatrix::Zero(rows, cols);
33 DenseVector vec1 = DenseVector::Random(rows);
60 int i = internal::random<int>(0,rows-1);
62 int h = internal::random<int>(1,rows-i-1);
89 for(int r=0; r<rows; r++)
103 DenseMatrix m1(rows,cols);
105 SparseMatrixType m2(rows,cols);
110 for (Index k=0; k<rows/2; ++k)
112 Index i = internal::random<Index>(0,rows-1);
123 DenseMatrix m1(rows,cols);
125 SparseMatrixType m2(rows,cols);
128 for (int k=0; k<rows*cols; ++k)
130 Index i = internal::random<Index>(0,rows-1);
147 DenseMatrix m1(rows,cols);
149 SparseMatrixType m2(rows,cols);
152 for (int k=0; k<rows*cols; ++k)
154 Index i = internal::random<Index>(0,rows-1);
168 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
169 SparseMatrixType m2(rows, rows);
171 Index j0 = internal::random<Index>(0,rows-1);
172 Index j1 = internal::random<Index>(0,rows-1);
183 SparseMatrixType m3(rows,rows);
184 m3.reserve(VectorXi::Constant(rows,rows/2));
185 for(Index j=0; j<rows; ++j)
188 for(Index j=0; j<rows; ++j)
195 for(Index j=0; j<rows; ++j)
209 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
210 SparseMatrixType m2(rows, rows);
214 Index j0 = internal::random<Index>(0,rows-2);
215 Index j1 = internal::random<Index>(0,rows-2);
216 Index n0 = internal::random<Index>(1,rows-(std::max)(j0,j1));
220 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(0,j0,rows,n0));
226 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0));
242 DenseMatrix refM1 = DenseMatrix::Zero(rows, rows);
243 DenseMatrix refM2 = DenseMatrix::Zero(rows, rows);
244 DenseMatrix refM3 = DenseMatrix::Zero(rows, rows);
245 DenseMatrix refM4 = DenseMatrix::Zero(rows, rows);
246 SparseMatrixType m1(rows, rows);
247 SparseMatrixType m2(rows, rows);
248 SparseMatrixType m3(rows, rows);
249 SparseMatrixType m4(rows, rows);
288 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
289 SparseMatrixType m2(rows, rows);
301 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
302 SparseMatrixType m2(rows, rows);
304 Index j0 = internal::random<Index>(0,rows-2);
305 Index j1 = internal::random<Index>(0,rows-2);
306 Index n0 = internal::random<Index>(1,rows-(std::max)(j0,j1));
310 VERIFY_IS_APPROX(m2.block(0,j0,rows,n0), refMat2.block(0,j0,rows,n0));
316 VERIFY_IS_APPROX(m2.block(0,j0,rows,n0)+m2.block(0,j1,rows,n0),
317 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0));
333 SparseMatrixType m2(rows, rows);
334 DenseMatrix refM2(rows, rows);
376 int ntriplets = rows*cols;
378 DenseMatrix refMat(rows,cols);
382 Index r = internal::random<Index>(0,rows-1);
388 SparseMatrixType m(rows,cols);
395 DenseMatrix refMat2(rows, rows), refMat3(rows, rows);
396 SparseMatrixType m2(rows, rows), m3(rows, rows);
426 DenseMatrix refMat2(rows, rows), refMat3(rows, rows);
427 SparseMatrixType m2(rows, rows), m3(rows, rows);
436 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
437 SparseMatrixType m2(rows, rows);
444 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
445 SparseMatrixType m2(rows, rows);
462 SparseMatrixType m1(rows, cols);
463 DenseMatrix refMat1 = DenseMatrix::Zero(rows, cols);
466 m1.conservativeResize(rows+incRows, cols+incCols);
467 refMat1.conservativeResize(rows+incRows, cols+incCols);
475 m1.insert(m1.rows()-1, 0) = refMat1(refMat1.rows()-1, 0) = 1;
487 DenseMatrix refMat1 = DenseMatrix::Identity(rows, rows);
488 SparseMatrixType m1(rows, rows);