SciPy

scipy.sparse.spmatrix.power

spmatrix.power(n, dtype=None)[source]

Element-wise power.