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