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