benchmark/scripts/SCIPY/ssyrk.py: Allocate `C` using zeros instead of randomly genera...
authorJohn Kirkham <kirkhamj@janelia.hhmi.org>
Tue, 19 Jan 2016 17:32:26 +0000 (12:32 -0500)
committerJohn Kirkham <kirkhamj@janelia.hhmi.org>
Tue, 19 Jan 2016 19:00:48 +0000 (14:00 -0500)
benchmark/scripts/SCIPY/ssyrk.py

index 1dee9e2..c7e1bdb 100755 (executable)
@@ -4,13 +4,14 @@ import os
 import sys
 import time
 import numpy
+from numpy import zeros
 from numpy.random import randn
 from scipy.linalg import blas
 
 def run_ssyrk(N,l):
 
        A = randn(N,N).astype('float32')
-       C = randn(N,N).astype('float32')
+       C = zeros((N,N), dtype='float32')
 
 
        start = time.time();