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