def prepare_dot(N=100, dtype=np.double): N=N*N*10 A = np.asarray(np.random.rand(int(N)), dtype=dtype) return (A, A) #return 1.0*toc/(trials), 2*N*N*N*1e-9, times