Lines Matching refs:cols
20 const Index cols = ref.cols();
24 double density = (std::max)(8./(rows*cols), 0.01);
31 SparseMatrixType m(rows, cols);
32 DenseMatrix refMat = DenseMatrix::Zero(rows, cols);
59 int j = internal::random<int>(0,cols-1);
61 int w = internal::random<int>(1,cols-j-1);
83 for(int c=0; c<cols; c++)
98 VERIFY_RAISES_ASSERT( m.coeffRef(0,m.cols()) = 0 );
103 DenseMatrix m1(rows,cols);
105 SparseMatrixType m2(rows,cols);
108 for (Index j=0; j<cols; ++j)
123 DenseMatrix m1(rows,cols);
125 SparseMatrixType m2(rows,cols);
128 for (int k=0; k<rows*cols; ++k)
131 Index j = internal::random<Index>(0,cols-1);
147 DenseMatrix m1(rows,cols);
149 SparseMatrixType m2(rows,cols);
152 for (int k=0; k<rows*cols; ++k)
155 Index j = internal::random<Index>(0,cols-1);
218 VERIFY_IS_APPROX(m2.innerVectors(j0,n0), refMat2.block(j0,0,n0,cols));
308 VERIFY_IS_APPROX(m2.block(j0,0,n0,cols), refMat2.block(j0,0,n0,cols));
313 VERIFY_IS_APPROX(m2.block(j0,0,n0,cols)+m2.block(j1,0,n0,cols),
314 refMat2.block(j0,0,n0,cols)+refMat2.block(j1,0,n0,cols));
376 int ntriplets = rows*cols;
378 DenseMatrix refMat(rows,cols);
383 Index c = internal::random<Index>(0,cols-1);
388 SparseMatrixType m(rows,cols);
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);
477 cols()-1) = refMat1(0, refMat1.cols()-1) = 1;