summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiros <andyspiros@gmail.com>2011-07-22 23:53:02 +0200
committerspiros <andyspiros@gmail.com>2011-07-22 23:53:02 +0200
commit47af1c14eaed0149ab6a3eb2b040d767a9fca82e (patch)
tree2e3552d44d74cda2408cc562eb2497711484c813 /btl/generic_bench/init/init_function.hh
parentAdded 2D FFTW tests. Much work around FFTW. (diff)
downloadauto-numerical-bench-47af1c14eaed0149ab6a3eb2b040d767a9fca82e.tar.gz
auto-numerical-bench-47af1c14eaed0149ab6a3eb2b040d767a9fca82e.tar.bz2
auto-numerical-bench-47af1c14eaed0149ab6a3eb2b040d767a9fca82e.zip
Added support for parallel LU decomposition in the PBLAS module. Much
work on the distributed memory framework.
Diffstat (limited to 'btl/generic_bench/init/init_function.hh')
-rw-r--r--btl/generic_bench/init/init_function.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/btl/generic_bench/init/init_function.hh b/btl/generic_bench/init/init_function.hh
index 7b3bdba..5401673 100644
--- a/btl/generic_bench/init/init_function.hh
+++ b/btl/generic_bench/init/init_function.hh
@@ -32,7 +32,7 @@ double simple_function(int index_i, int index_j)
double pseudo_random(int index)
{
- return std::rand()/double(RAND_MAX);
+ return static_cast<int>((std::rand()/double(RAND_MAX)-.5)*20);
}
double pseudo_random(int index_i, int index_j)