Python稀疏矩陣運算

  1 import numpy as np 2 import scipy 3 import time 4 import scipy.sparse as sparse 5 6 t = [1]+[0]*4999 7 a = scipy.matrix(np.array(t*5000, dtype=float).reshape(5000, 5000)) 8 start = time.t
相關文章
相關標籤/搜索