scipy.sparse.csc_matrix. power# csc_matrix.power(n, dtype=None)[source]# 此函数执行逐元素求幂。 参数: n标量n 是一个非零标量 (非零避免创建密集数组) 如果需要零次幂,特殊处理以使用 np.ones dtype如果未指定 dtype,则将保留当前 dtype。 引发: NotImplementedError如果 n 是零标量如果需要零次幂,特殊处理以使用 np.ones(A.shape, dtype=A.dtype)