Lines Matching full:rows

19   const Index rows = ref.rows();  in sparse_basic()  local
24 double density = (std::max)(8./(rows*cols), 0.01); in sparse_basic()
32 SparseMatrixType m(rows, cols); in sparse_basic()
33 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_basic()
34 DenseVector vec1 = DenseVector::Random(rows); in sparse_basic()
61 int i = internal::random<int>(0,rows-1); in sparse_basic()
63 int h = internal::random<int>(1,rows-i-1); in sparse_basic()
121 for(int r=0; r<rows; r++) in sparse_basic()
135 DenseMatrix m1(rows,cols); in sparse_basic()
137 SparseMatrixType m2(rows,cols); in sparse_basic()
142 for (Index k=0; k<rows/2; ++k) in sparse_basic()
144 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
155 DenseMatrix m1(rows,cols); in sparse_basic()
157 SparseMatrixType m2(rows,cols); in sparse_basic()
160 for (int k=0; k<rows*cols; ++k) in sparse_basic()
162 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
179 DenseMatrix m1(rows,cols); in sparse_basic()
181 SparseMatrixType m2(rows,cols); in sparse_basic()
184 for (int k=0; k<rows*cols; ++k) in sparse_basic()
186 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
200 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
201 SparseMatrixType m2(rows, rows); in sparse_basic()
203 Index j0 = internal::random<Index>(0,rows-1); in sparse_basic()
204 Index j1 = internal::random<Index>(0,rows-1); in sparse_basic()
215 SparseMatrixType m3(rows,rows); in sparse_basic()
216 m3.reserve(VectorXi::Constant(rows,rows/2)); in sparse_basic()
217 for(Index j=0; j<rows; ++j) in sparse_basic()
220 for(Index j=0; j<rows; ++j) in sparse_basic()
227 for(Index j=0; j<rows; ++j) in sparse_basic()
241 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
242 SparseMatrixType m2(rows, rows); in sparse_basic()
246 Index j0 = internal::random<Index>(0,rows-2); in sparse_basic()
247 Index j1 = internal::random<Index>(0,rows-2); in sparse_basic()
248 Index n0 = internal::random<Index>(1,rows-(std::max)(j0,j1)); in sparse_basic()
252 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(0,j0,rows,n0)); in sparse_basic()
258 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0)); in sparse_basic()
274 DenseMatrix refM1 = DenseMatrix::Zero(rows, rows); in sparse_basic()
275 DenseMatrix refM2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
276 DenseMatrix refM3 = DenseMatrix::Zero(rows, rows); in sparse_basic()
277 DenseMatrix refM4 = DenseMatrix::Zero(rows, rows); in sparse_basic()
278 SparseMatrixType m1(rows, rows); in sparse_basic()
279 SparseMatrixType m2(rows, rows); in sparse_basic()
280 SparseMatrixType m3(rows, rows); in sparse_basic()
281 SparseMatrixType m4(rows, rows); in sparse_basic()
320 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
321 SparseMatrixType m2(rows, rows); in sparse_basic()
333 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
334 SparseMatrixType m2(rows, rows); in sparse_basic()
336 Index j0 = internal::random<Index>(0,rows-2); in sparse_basic()
337 Index j1 = internal::random<Index>(0,rows-2); in sparse_basic()
338 Index n0 = internal::random<Index>(1,rows-(std::max)(j0,j1)); in sparse_basic()
342 VERIFY_IS_APPROX(m2.block(0,j0,rows,n0), refMat2.block(0,j0,rows,n0)); in sparse_basic()
348 VERIFY_IS_APPROX(m2.block(0,j0,rows,n0)+m2.block(0,j1,rows,n0), in sparse_basic()
349 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0)); in sparse_basic()
374 SparseMatrixType m2(rows, rows); in sparse_basic()
375 DenseMatrix refM2(rows, rows); in sparse_basic()
417 int ntriplets = rows*cols; in sparse_basic()
419 DenseMatrix refMat(rows,cols); in sparse_basic()
423 Index r = internal::random<Index>(0,rows-1); in sparse_basic()
429 SparseMatrixType m(rows,cols); in sparse_basic()
436 DenseMatrix refMat2(rows, rows), refMat3(rows, rows); in sparse_basic()
437 SparseMatrixType m2(rows, rows), m3(rows, rows); in sparse_basic()
467 DenseMatrix refMat2(rows, rows), refMat3(rows, rows); in sparse_basic()
468 SparseMatrixType m2(rows, rows), m3(rows, rows); in sparse_basic()
477 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
478 SparseMatrixType m2(rows, rows); in sparse_basic()
485 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
486 SparseMatrixType m2(rows, rows); in sparse_basic()
503 SparseMatrixType m1(rows, cols); in sparse_basic()
504 DenseMatrix refMat1 = DenseMatrix::Zero(rows, cols); in sparse_basic()
507 m1.conservativeResize(rows+incRows, cols+incCols); in sparse_basic()
508 refMat1.conservativeResize(rows+incRows, cols+incCols); in sparse_basic()
516 m1.insert(m1.rows()-1, 0) = refMat1(refMat1.rows()-1, 0) = 1; in sparse_basic()
528 DenseMatrix refMat1 = DenseMatrix::Identity(rows, rows); in sparse_basic()
529 SparseMatrixType m1(rows, rows); in sparse_basic()