(self, *patterns)
return any(self[key].has(*patterns) for key in self._smat)
Test whether any subexpression matches any of the patterns.

        Examples
        ========

        >>> from sympy import SparseMatrix, Float
        >>> from sympy.abc import x, y
        >>> A = SparseMatrix(((1, x), (0.2, 3)))
        >>> A.has(x)
        True
        >>> A.has(y)
        False
        >>> A.has(Float)
        True
Test whether any subexpression matches any of the patterns.
Test whether any subexpression matches any of the patterns .
def has(self, *patterns):
        """Test whether any subexpression matches any of the patterns.

        Examples
        ========

        >>> from sympy import SparseMatrix, Float
        >>> from sympy.abc import x, y
        >>> A = SparseMatrix(((1, x), (0.2, 3)))
        >>> A.has(x)
        True
        >>> A.has(y)
        False
        >>> A.has(Float)
        True
        """
        return any(self[key].has(*patterns) for key in self._smat)
def has ( self , * patterns ) : return any ( self [ key ] . has ( * patterns ) for key in self . _smat )