code: def dpotri(A, lower=1):
      
  
      A = force_F_ordered(A)
      R, info = lapack.dpotri(A, lower=lower) #needs to be zero here, seems to be a scipy bug
  
      symmetrify(R)
      return R, info
docs: Wrapper for lapack dpotri function
  
      DPOTRI - compute the inverse of a real symmetric positive
        definite matrix A using the Cholesky factorization A =
        U**T*U or A = L*L**T computed by DPOTRF
  
      :param A: Matrix A
      :param lower: is matrix lower (true) or upper (false)
      :returns: A inverse