def xreplace(self, rule):  # should mirror core.basic.xreplace
        return self.applyfunc(lambda x: x.xreplace(rule))
Return a new matrix with xreplace applied to each entry.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.xreplace