def prepare_eig(N=100, dtype=np.double): N/=4 return ( np.asarray(np.random.rand(int(N), int(N)), dtype=dtype), )