Lines Matching defs:density
50 * and a ratio of \a density non zero entries.
57 initSparse(double density,
66 //sparseMat.reserve(int(refMat.rows()*refMat.cols()*density));
67 sparseMat.reserve(VectorXi::Constant(IsRowMajor ? refMat.rows() : refMat.cols(), int((1.5*density)*(IsRowMajor?refMat.cols():refMat.rows()))));
77 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
109 initSparse(double density,
118 sparseMat.reserve(int(refMat.rows()*refMat.cols()*density));
127 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
158 initSparse(double density,
164 sparseVec.reserve(int(refVec.size()*density));
168 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
182 initSparse(double density,
188 sparseVec.reserve(int(refVec.size()*density));
192 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);