def is_symmetric(self, simplify=True):
        if not self.is_square:
            return False
        if simplify:
            delta = self - self.transpose()
            delta.simplify()
            return delta.equals(self.zeros(self.rows, self.cols))
        else:
            return self == self.transpose()
Check if matrix is symmetric matrix,
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.is_symmetric