(self, simplify=True)
Return True if self is symmetric.

        Examples
        ========

        >>> from sympy.matrices import SparseMatrix, eye
        >>> M = SparseMatrix(eye(3))
        >>> M.is_symmetric()
        True
        >>> M[0, 2] = 1
        >>> M.is_symmetric()
        False
Return True if self is symmetric.
Return True if self is symmetric .
def is_symmetric(self, simplify=True):
        """Return True if self is symmetric.

        Examples
        ========

        >>> from sympy.matrices import SparseMatrix, eye
        >>> M = SparseMatrix(eye(3))
        >>> M.is_symmetric()
        True
        >>> M[0, 2] = 1
        >>> M.is_symmetric()
        False
        """
        if simplify:
            return all((k[1], k[0]) in self._smat and
                not (self[k] - self[(k[1], k[0])]).simplify()
                for k in self._smat)
        else:
            return all((k[1], k[0]) in self._smat and
                self[k] == self[(k[1], k[0])] for k in self._smat)
def is_symmetric ( self , simplify = True ) : if simplify : return all ( ( k [ 1 ] , k [ 0 ] ) in self . _smat and not ( self [ k ] - self [ ( k [ 1 ] , k [ 0 ] ) ] ) . simplify ( ) for k in self . _smat ) else : return all ( ( k [ 1 ] , k [ 0 ] ) in self . _smat and self [ k ] == self [ ( k [ 1 ] , k [ 0 ] ) ] for k in self . _smat )