diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-25 10:15:22 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-25 10:15:22 -0400 |
commit | 4716040703be1ee906439385d20475dcddad5ce3 (patch) | |
tree | 8efd3cf3007d8360e66f38e2d280127cbb70daa6 /bench/BenchSparseUtil.h | |
parent | ca85a1f6c5fc33ac382aa2d7ba2da63d55d3223e (diff) |
bug #86 : use internal:: namespace instead of ei_ prefix
Diffstat (limited to 'bench/BenchSparseUtil.h')
-rw-r--r-- | bench/BenchSparseUtil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/BenchSparseUtil.h b/bench/BenchSparseUtil.h index 305c70aeb..ff836bffe 100644 --- a/bench/BenchSparseUtil.h +++ b/bench/BenchSparseUtil.h @@ -31,7 +31,7 @@ void fillMatrix(float density, int rows, int cols, EigenSparseMatrix& dst) { for(int i = 0; i < rows; i++) { - Scalar v = (ei_random<float>(0,1) < density) ? ei_random<Scalar>() : 0; + Scalar v = (internal::random<float>(0,1) < density) ? internal::random<Scalar>() : 0; if (v!=0) dst.insert(i,j) = v; } @@ -48,12 +48,12 @@ void fillMatrix2(int nnzPerCol, int rows, int cols, EigenSparseMatrix& dst) std::set<int> aux; for(int i = 0; i < nnzPerCol; i++) { - int k = ei_random<int>(0,rows-1); + int k = internal::random<int>(0,rows-1); while (aux.find(k)!=aux.end()) - k = ei_random<int>(0,rows-1); + k = internal::random<int>(0,rows-1); aux.insert(k); - dst.insert(k,j) = ei_random<Scalar>(); + dst.insert(k,j) = internal::random<Scalar>(); } } dst.finalize(); |