

def __init__(self, A, p):
    if ((A.ndim != 2) or (A.shape[0] != A.shape[1])):
        raise ValueError('expected A to be like a square matrix')
    if ((p < 0) or (p != int(p))):
        raise ValueError('expected p to be a non-negative integer')
    self._A = A
    self._p = p
    self.ndim = A.ndim
    p.shape = A.shape

dataset/ETHPy150Open scipy/scipy/scipy/linalg/_matfuncs_inv_ssq.py _MatrixM1PowerOperator.__init__/VarMisuse@97/137 `self`->`p`