Lines Matching full:rows
12 template<typename Scalar,typename StorageIndex> void sparse_vector(int rows, int cols) in sparse_vector() argument
14 double densityMat = (std::max)(8./(rows*cols), 0.01); in sparse_vector()
15 double densityVec = (std::max)(8./(rows), 0.1); in sparse_vector()
22 SparseMatrixType m1(rows,rows); in sparse_vector()
23 SparseVectorType v1(rows), v2(rows), v3(rows); in sparse_vector()
24 DenseMatrix refM1 = DenseMatrix::Zero(rows, rows); in sparse_vector()
25 DenseVector refV1 = DenseVector::Random(rows), in sparse_vector()
26 refV2 = DenseVector::Random(rows), in sparse_vector()
27 refV3 = DenseVector::Random(rows); in sparse_vector()
58 SparseVectorType v4(rows); in sparse_vector()
59 DenseVector v5 = DenseVector::Zero(rows); in sparse_vector()
60 for(int k=0; k<rows; ++k) in sparse_vector()
62 int i = internal::random<int>(0,rows-1); in sparse_vector()
91 int i = internal::random<int>(0,rows-1); in sparse_vector()
119 if(rows > 3) in sparse_vector()
128 SparseVectorType vec1(rows); in sparse_vector()
129 DenseVector refVec1 = DenseVector::Zero(rows); in sparse_vector()
132 vec1.conservativeResize(rows+incRows); in sparse_vector()
133 refVec1.conservativeResize(rows+incRows); in sparse_vector()
140 vec1.insert(vec1.rows()-1) = refVec1(refVec1.rows()-1) = 1; in sparse_vector()