Ticket #4306: trac_4306.patch

File trac_4306.patch, 997 bytes (added by was, 12 years ago)
  • sage/modular/ssmod/ssmod.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1263906548 28800
    # Node ID 5a8bec47388119d34c22244f6bcc7c8aea2265bc
    # Parent  9cb51a984397cf36a609e7eb615e581f35cf7461
    trac 4306 -- bug in supersingular module
    
    diff -r 9cb51a984397 -r 5a8bec473881 sage/modular/ssmod/ssmod.py
    a b  
    695695        else:
    696696            return cmp( (self.__level, self.__prime, self.base_ring()), (other.__level, other.__prime, other.base_ring()))
    697697
     698    def free_module(self):
     699        """
     700        EXAMPLES::
     701       
     702            sage: X = SupersingularModule(37)
     703            sage: X.free_module()
     704            Ambient free module of rank 3 over the principal ideal domain Integer Ring
     705        """
     706        return rings.ZZ**self.dimension()
     707
    698708    def dimension(self):
    699709        r"""
    700710        Return the dimension of the space of modular forms of weight 2