Home | History | Annotate | Download | only in test

Lines Matching full:rows

17   const Index rows = ref.rows();
22 double density = (std::max)(8./(rows*cols), 0.01);
27 SparseMatrixType m(rows, cols);
28 DenseMatrix refMat = DenseMatrix::Zero(rows, cols);
29 DenseVector vec1 = DenseVector::Random(rows);
57 int i = internal::random<int>(0,rows-1);
59 int h = internal::random<int>(1,rows-i-1);
86 for(int r=0; r<rows; r++)
95 DenseMatrix m1(rows,cols);
97 SparseMatrixType m2(rows,cols);
102 for (int k=0; k<rows/2; ++k)
104 int i = internal::random<int>(0,rows-1);
115 DenseMatrix m1(rows,cols);
117 SparseMatrixType m2(rows,cols);
120 for (int k=0; k<rows*cols; ++k)
122 int i = internal::random<int>(0,rows-1);
139 DenseMatrix m1(rows,cols);
141 SparseMatrixType m2(rows,cols);
144 for (int k=0; k<rows*cols; ++k)
146 int i = internal::random<int>(0,rows-1);
160 DenseMatrix refM1 = DenseMatrix::Zero(rows, rows);
161 DenseMatrix refM2 = DenseMatrix::Zero(rows, rows);
162 DenseMatrix refM3 = DenseMatrix::Zero(rows, rows);
163 DenseMatrix refM4 = DenseMatrix::Zero(rows, rows);
164 SparseMatrixType m1(rows, rows);
165 SparseMatrixType m2(rows, rows);
166 SparseMatrixType m3(rows, rows);
167 SparseMatrixType m4(rows, rows);
200 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
201 SparseMatrixType m2(rows, rows);
211 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
212 SparseMatrixType m2(rows, rows);
214 int j0 = internal::random<int>(0,rows-1);
215 int j1 = internal::random<int>(0,rows-1);
226 SparseMatrixType m3(rows,rows);
227 m3.reserve(VectorXi::Constant(rows,rows/2));
228 for(int j=0; j<rows; ++j)
231 for(int j=0; j<rows; ++j)
238 for(int j=0; j<rows; ++j)
252 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
253 SparseMatrixType m2(rows, rows);
255 int j0 = internal::random<int>(0,rows-2);
256 int j1 = internal::random<int>(0,rows-2);
257 int n0 = internal::random<int>(1,rows-(std::max)(j0,j1));
261 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(0,j0,rows,n0));
267 refMat2.block(0,j0,rows,n0)+refMat2.block(0,j1,rows,n0));
269 //refMat2.block(0,j0,rows,n0) = refMat2.block(0,j0,rows,n0) + refMat2.block(0,j1,rows,n0);
274 SparseMatrixType m2(rows, rows);
275 DenseMatrix refM2(rows, rows);
317 int ntriplets = rows*cols;
319 DenseMatrix refMat(rows,cols);
323 int r = internal::random<int>(0,rows-1);
329 SparseMatrixType m(rows,cols);
336 DenseMatrix refMat2(rows, rows), refMat3(rows, rows);
337 SparseMatrixType m2(rows, rows), m3(rows, rows);
359 DenseMatrix refMat2(rows, rows), refMat3(rows, rows);
360 SparseMatrixType m2(rows, rows), m3(rows, rows);
369 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
370 SparseMatrixType m2(rows, rows);
377 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows);
378 SparseMatrixType m2(rows, rows);