def power(self, n):
        self.matrix.eliminate_zeros()
        mat = self.matrix.tocoo()
        mat.data = np.power(mat.data, n)
        return self._new_instance(mat)
Computes the element-wise power.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.power