def cofactorMatrix(self, method="berkowitz"):
        out = self._new(self.rows, self.cols, lambda i, j:
                self.cofactor(i, j, method))
        return out
Return a matrix containing the cofactor of each element.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.cofactorMatrix