Lines Matching refs:Scalar
56 template<typename Scalar,int Opt1,int Opt2,typename StorageIndex> void
58 Matrix<Scalar,Dynamic,Dynamic,Opt1>& refMat,
59 SparseMatrix<Scalar,Opt2,StorageIndex>& sparseMat,
64 enum { IsRowMajor = SparseMatrix<Scalar,Opt2,StorageIndex>::IsRowMajor };
77 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
81 v = internal::random<Scalar>()*Scalar(3.);
83 if(numext::real(v)>0) v += Scalar(5);
84 else v -= Scalar(5);
87 v = Scalar(0);
89 v = Scalar(0);
94 if (v!=Scalar(0))
111 template<typename Scalar,int Opt1,int Opt2,typename Index> void
113 Matrix<Scalar,Dynamic,Dynamic, Opt1>& refMat,
114 DynamicSparseMatrix<Scalar, Opt2, Index>& sparseMat,
119 enum { IsRowMajor = DynamicSparseMatrix<Scalar,Opt2,Index>::IsRowMajor };
130 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
133 v = internal::random<Scalar>()*Scalar(3.);
134 v = v*v + Scalar(5.);
137 v = Scalar(0);
139 v = Scalar(0);
144 if (v!=Scalar(0))
160 template<typename Scalar,int Options,typename Index> void
162 Matrix<Scalar,Dynamic,1>& refVec,
163 SparseVector<Scalar,Options,Index>& sparseVec,
171 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
172 if (v!=Scalar(0))
184 template<typename Scalar,int Options,typename Index> void
186 Matrix<Scalar,1,Dynamic>& refVec,
187 SparseVector<Scalar,Options,Index>& sparseVec,
195 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0);
196 if (v!=Scalar(0))