Lines Matching refs:coords
47 EIGEN_DONT_INLINE Scalar* setinnerrand_eigen(const Coordinates& coords, const Values& vals);
48 EIGEN_DONT_INLINE Scalar* setrand_eigen_dynamic(const Coordinates& coords, const Values& vals);
49 EIGEN_DONT_INLINE Scalar* setrand_eigen_compact(const Coordinates& coords, const Values& vals);
50 EIGEN_DONT_INLINE Scalar* setrand_eigen_sumeq(const Coordinates& coords, const Values& vals);
51 EIGEN_DONT_INLINE Scalar* setrand_eigen_gnu_hash(const Coordinates& coords, const Values& vals);
52 EIGEN_DONT_INLINE Scalar* setrand_eigen_google_dense(const Coordinates& coords, const Values& vals);
53 EIGEN_DONT_INLINE Scalar* setrand_eigen_google_sparse(const Coordinates& coords, const Values& vals…
54 EIGEN_DONT_INLINE Scalar* setrand_scipy(const Coordinates& coords, const Values& vals);
55 EIGEN_DONT_INLINE Scalar* setrand_ublas_mapped(const Coordinates& coords, const Values& vals);
56 EIGEN_DONT_INLINE Scalar* setrand_ublas_coord(const Coordinates& coords, const Values& vals);
57 EIGEN_DONT_INLINE Scalar* setrand_ublas_compressed(const Coordinates& coords, const Values& vals);
58 EIGEN_DONT_INLINE Scalar* setrand_ublas_genvec(const Coordinates& coords, const Values& vals);
59 EIGEN_DONT_INLINE Scalar* setrand_mtl(const Coordinates& coords, const Values& vals);
68 Coordinates coords; in main() local
89 coords.reserve(n); in main()
94 coords.push_back(pool[i]); in main()
103 coords.push_back(Vector2i(internal::random<int>(0,rows-1),j)); in main()
107 std::cout << "nnz = " << coords.size() << "\n"; in main()
113 BENCH(setrand_eigen_dense(coords,values);) in main()
125 BENCH(setrand_eigen_dynamic(coords,values);) in main()
133 BENCH(setrand_eigen_sumeq(coords,values);) in main()
141 BENCH(setrand_scipy(coords,values);) in main()
146 BENCH(setrand_eigen_google_dense(coords,values);) in main()
150 BENCH(setrand_eigen_google_sparse(coords,values);) in main()
161 BENCH(setrand_ublas_genvec(coords,values);) in main()
186 BENCH(setrand_mtl(coords,values)); in main()
194 EIGEN_DONT_INLINE Scalar* setinnerrand_eigen(const Coordinates& coords, const Values& vals) in setinnerrand_eigen() argument
199 for (int i=0; i<coords.size(); ++i) in setinnerrand_eigen()
201 mat.insert(coords[i].x(), coords[i].y()) = vals[i]; in setinnerrand_eigen()
208 EIGEN_DONT_INLINE Scalar* setrand_eigen_dynamic(const Coordinates& coords, const Values& vals) in setrand_eigen_dynamic() argument
212 mat.reserve(coords.size()/10); in setrand_eigen_dynamic()
213 for (int i=0; i<coords.size(); ++i) in setrand_eigen_dynamic()
215 mat.coeffRef(coords[i].x(), coords[i].y()) += vals[i]; in setrand_eigen_dynamic()
219 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_eigen_dynamic()
222 EIGEN_DONT_INLINE Scalar* setrand_eigen_sumeq(const Coordinates& coords, const Values& vals) in setrand_eigen_sumeq() argument
225 int n = coords.size()/KK; in setrand_eigen_sumeq()
233 aux.insert(coords[i].x(), coords[i].y()) += vals[i]; in setrand_eigen_sumeq()
238 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_eigen_sumeq()
241 EIGEN_DONT_INLINE Scalar* setrand_eigen_compact(const Coordinates& coords, const Values& vals) in setrand_eigen_compact() argument
245 setter.reserve(coords.size()/10); in setrand_eigen_compact()
246 for (int i=0; i<coords.size(); ++i) in setrand_eigen_compact()
248 setter.coeffRef(coords[i].x(), coords[i].y()) += vals[i]; in setrand_eigen_compact()
252 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_eigen_compact()
255 EIGEN_DONT_INLINE Scalar* setrand_eigen_gnu_hash(const Coordinates& coords, const Values& vals) in setrand_eigen_gnu_hash() argument
261 for (int i=0; i<coords.size(); ++i) in setrand_eigen_gnu_hash()
263 setter(coords[i].x(), coords[i].y()) += vals[i]; in setrand_eigen_gnu_hash()
267 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_eigen_gnu_hash()
271 EIGEN_DONT_INLINE Scalar* setrand_eigen_google_dense(const Coordinates& coords, const Values& vals) in setrand_eigen_google_dense() argument
277 for (int i=0; i<coords.size(); ++i) in setrand_eigen_google_dense()
278 setter(coords[i].x(), coords[i].y()) += vals[i]; in setrand_eigen_google_dense()
281 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_eigen_google_dense()
284 EIGEN_DONT_INLINE Scalar* setrand_eigen_google_sparse(const Coordinates& coords, const Values& vals) in setrand_eigen_google_sparse() argument
290 for (int i=0; i<coords.size(); ++i) in setrand_eigen_google_sparse()
291 setter(coords[i].x(), coords[i].y()) += vals[i]; in setrand_eigen_google_sparse()
294 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_eigen_google_sparse()
405 EIGEN_DONT_INLINE Scalar* setrand_scipy(const Coordinates& coords, const Values& vals) in setrand_scipy() argument
409 mat.resizeNonZeros(coords.size()); in setrand_scipy()
411 …coo_tocsr<Scalar>(SIZE,SIZE, coords.size(), coords, vals, mat._outerIndexPtr(), mat._innerIndexPtr… in setrand_scipy()
420 return &mat.coeffRef(coords[0].x(), coords[0].y()); in setrand_scipy()
425 EIGEN_DONT_INLINE Scalar* setrand_ublas_mapped(const Coordinates& coords, const Values& vals) in setrand_ublas_mapped() argument
431 for (int i=0; i<coords.size(); ++i) in setrand_ublas_mapped()
433 aux(coords[i].x(), coords[i].y()) += vals[i]; in setrand_ublas_mapped()
464 EIGEN_DONT_INLINE Scalar* setrand_ublas_genvec(const Coordinates& coords, const Values& vals) in setrand_ublas_genvec() argument
472 for (int i=0; i<coords.size(); ++i) in setrand_ublas_genvec()
474 aux(coords[i].x(), coords[i].y()) += vals[i]; in setrand_ublas_genvec()
483 EIGEN_DONT_INLINE void setrand_mtl(const Coordinates& coords, const Values& vals);