class_docstr: A representation of the linear operator (A - I)^p.
class_docstr_tok: ["A","representation","of","the","linear","operator","(","A","-","I",")","^p","."]
code: 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
      self.shape = A.shape
  
imports: import warnings
  import numpy
  from scipy.linalg._matfuncs_sqrtm import SqrtmError, _sqrtm_triu
  from scipy.linalg.decomp_schur import schur, rsf2csf
  from scipy.linalg.matfuncs import funm
  from scipy.linalg import svdvals, solve_triangular
  from scipy.sparse.linalg.interface import LinearOperator
  from scipy.sparse.linalg import onenormest
  import scipy.special
label_desc: Use image node_id 1 to create a new _MatrixM1PowerOperator object from inherited base classes: LinearOperator with example: obj = _MatrixM1PowerOperator(A, p)