def atoms(self, *types):

        if types:
            types = tuple(
                [t if isinstance(t, type) else type(t) for t in types])
        else:
            types = (Atom,)
        result = set()
        for i in self:
            result.update( i.atoms(*types) )
        return result
Returns the atoms that form the current object.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.atoms