Lines Matching refs:rows
22 const Index rows = ref.rows(); in sparse_basic() local
31 double density = (std::max)(8./(rows*cols), 0.01); in sparse_basic()
38 SparseMatrixType m(rows, cols); in sparse_basic()
39 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_basic()
40 DenseVector vec1 = DenseVector::Random(rows); in sparse_basic()
69 DenseMatrix m1(rows,cols); in sparse_basic()
71 SparseMatrixType m2(rows,cols); in sparse_basic()
73 Index nnz = internal::random<int>(1,int(rows)/2); in sparse_basic()
86 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
103 DenseMatrix m1(rows,cols); in sparse_basic()
105 SparseMatrixType m2(rows,cols); in sparse_basic()
108 for (int k=0; k<rows*cols; ++k) in sparse_basic()
110 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
127 DenseMatrix m1(rows,cols); in sparse_basic()
129 SparseMatrixType m2(rows,cols); in sparse_basic()
132 for (Index k=0; k<rows*cols; ++k) in sparse_basic()
134 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
148 DenseMatrix refM1 = DenseMatrix::Zero(rows, cols); in sparse_basic()
149 DenseMatrix refM2 = DenseMatrix::Zero(rows, cols); in sparse_basic()
150 DenseMatrix refM3 = DenseMatrix::Zero(rows, cols); in sparse_basic()
151 DenseMatrix refM4 = DenseMatrix::Zero(rows, cols); in sparse_basic()
152 SparseMatrixType m1(rows, cols); in sparse_basic()
153 SparseMatrixType m2(rows, cols); in sparse_basic()
154 SparseMatrixType m3(rows, cols); in sparse_basic()
155 SparseMatrixType m4(rows, cols); in sparse_basic()
180 DenseVector cv = DenseVector::Random(m1.rows()); in sparse_basic()
181 Index r = internal::random<Index>(0,m1.rows()-2); in sparse_basic()
225 if (rows>=2 && cols>=2) in sparse_basic()
276 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic()
277 SparseMatrixType m2(rows, cols); in sparse_basic()
306 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic()
307 SparseMatrixType m2(rows, cols); in sparse_basic()
321 SparseMatrixType m2(rows, cols); in sparse_basic()
322 DenseMatrix refM2(rows, cols); in sparse_basic()
329 for (Index i=0; i<m2.rows(); ++i) in sparse_basic()
363 Index ntriplets = rows*cols; in sparse_basic()
365 DenseMatrix refMat_sum = DenseMatrix::Zero(rows,cols); in sparse_basic()
366 DenseMatrix refMat_prod = DenseMatrix::Zero(rows,cols); in sparse_basic()
367 DenseMatrix refMat_last = DenseMatrix::Zero(rows,cols); in sparse_basic()
371 StorageIndex r = internal::random<StorageIndex>(0,StorageIndex(rows-1)); in sparse_basic()
382 SparseMatrixType m(rows,cols); in sparse_basic()
396 DenseMatrix refMat2(rows, cols), refMat3(rows, cols); in sparse_basic()
397 SparseMatrixType m2(rows, cols), m3(rows, cols); in sparse_basic()
401 …Map<SparseMatrixType> mapMat2(m2.rows(), m2.cols(), m2.nonZeros(), m2.outerIndexPtr(), m2.innerInd… in sparse_basic()
402 …Map<SparseMatrixType> mapMat3(m3.rows(), m3.cols(), m3.nonZeros(), m3.outerIndexPtr(), m3.innerInd… in sparse_basic()
407 …MappedSparseMatrix<Scalar,SparseMatrixType::Options,StorageIndex> mapMat2(m2.rows(), m2.cols(), m2… in sparse_basic()
408 …MappedSparseMatrix<Scalar,SparseMatrixType::Options,StorageIndex> mapMat3(m3.rows(), m3.cols(), m3… in sparse_basic()
413 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
418 …Map<SparseMatrixType> mapMat2(rows, cols, m2.nonZeros(), m2.outerIndexPtr(), m2.innerIndexPtr(), m… in sparse_basic()
427 DenseMatrix refMat2(rows, cols), refMat3(rows, cols); in sparse_basic()
428 SparseMatrixType m2(rows, cols), m3(rows, cols); in sparse_basic()
464 DenseMatrix refMat2(rows, rows), refMat3(rows, rows); in sparse_basic()
465 SparseMatrixType m2(rows, rows), m3(rows, rows); in sparse_basic()
480 SparseMatrixType m4(rows, rows+1); in sparse_basic()
487 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic()
488 SparseMatrixType m2(rows, rows); in sparse_basic()
501 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic()
502 SparseMatrixType m2(rows, cols); in sparse_basic()
519 DenseVector d = DenseVector::Random(rows); in sparse_basic()
521 SparseMatrixType m2(rows, rows); in sparse_basic()
534 if(rows > 3 && cols > 2) in sparse_basic()
544 SparseMatrixType m1(rows, cols); in sparse_basic()
545 DenseMatrix refMat1 = DenseMatrix::Zero(rows, cols); in sparse_basic()
548 m1.conservativeResize(rows+incRows, cols+incCols); in sparse_basic()
549 refMat1.conservativeResize(rows+incRows, cols+incCols); in sparse_basic()
557 m1.insert(m1.rows()-1, 0) = refMat1(refMat1.rows()-1, 0) = 1; in sparse_basic()
569 DenseMatrix refMat1 = DenseMatrix::Identity(rows, rows); in sparse_basic()
570 SparseMatrixType m1(rows, rows); in sparse_basic()
573 for(int k=0; k<rows*rows/4; ++k) in sparse_basic()
575 Index i = internal::random<Index>(0,rows-1); in sparse_basic()
576 Index j = internal::random<Index>(0,rows-1); in sparse_basic()
593 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic()
594 SparseMatrixType m2(rows, cols); in sparse_basic()
619 void big_sparse_triplet(Index rows, Index cols, double density) { in big_sparse_triplet() argument
624 double nelements = density * rows*cols; in big_sparse_triplet()
631 Index r = internal::random<Index>(0,rows-1); in big_sparse_triplet()
637 SparseMatrixType m(rows,cols); in big_sparse_triplet()