scipy.sparse.coo_matrix. power# coo_matrix.power(n, dtype=None)[source]# 此函數執行逐元素次方運算。 參數: n純量n 是一個非零純量(非零避免建立密集矩陣)。如果需要零次方,請特殊處理以使用 np.ones dtype如果未指定 dtype,將保留目前的 dtype。 Raises: NotImplementedError如果 n 是零純量如果需要零次方,請特殊處理以使用 np.ones(A.shape, dtype=A.dtype)