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