(self)
return all(x == 0 for x in self.gens)
Return True if ``self`` is a zero module.

        >>> from sympy.abc import x
        >>> from sympy import QQ
        >>> F = QQ.old_poly_ring(x).free_module(2)
        >>> F.submodule([x, 1]).is_zero()
        False
        >>> F.submodule([0, 0]).is_zero()
        True
Return True if ``self`` is a zero module.
Return True if self is a zero module .
def is_zero(self):
        """
        Return True if ``self`` is a zero module.

        >>> from sympy.abc import x
        >>> from sympy import QQ
        >>> F = QQ.old_poly_ring(x).free_module(2)
        >>> F.submodule([x, 1]).is_zero()
        False
        >>> F.submodule([0, 0]).is_zero()
        True
        """
        return all(x == 0 for x in self.gens)
def is_zero ( self ) : return all ( x == 0 for x in self . gens )