@@ -482,13 +482,11 @@ def free_module(self):
482
482
483
483
def gen (self , i = 0 ):
484
484
"""
485
- Return i-th generator of self.
485
+ Return i-th generator of `` self`` .
486
486
487
487
INPUT:
488
488
489
-
490
- - ``i`` - an integer
491
-
489
+ - ``i`` -- an integer
492
490
493
491
OUTPUT: a morphism
494
492
@@ -508,7 +506,7 @@ def gen(self, i=0):
508
506
509
507
def ngens (self ):
510
508
"""
511
- Return number of generators of self.
509
+ Return number of generators of `` self`` .
512
510
513
511
OUTPUT: integer
514
512
@@ -661,10 +659,12 @@ def _calculate_product_gens(self):
661
659
662
660
def _calculate_simple_gens (self ):
663
661
"""
664
- Calculate generators for self, where both the domain and codomain
665
- for self are assumed to be simple abelian varieties. The saturation
666
- of the span of these generators in self will be the full space of
667
- homomorphisms from the domain of self to its codomain.
662
+ Calculate generators for ``self``, where both the domain and codomain
663
+ for ``self`` are assumed to be simple abelian varieties.
664
+
665
+ The saturation of the span of these generators in ``self``
666
+ will be the full space of homomorphisms from the domain of
667
+ ``self`` to its codomain.
668
668
669
669
EXAMPLES::
670
670
@@ -759,13 +759,11 @@ def __init__(self, A, gens=None, category=None):
759
759
760
760
INPUT:
761
761
762
+ - ``A`` -- an abelian variety
762
763
763
- - ``A`` - an abelian variety
764
-
765
- - ``gens`` - (default: None); optional; if given
764
+ - ``gens`` -- (default: ``None``); optional; if given
766
765
should be a tuple of the generators as matrices
767
766
768
-
769
767
EXAMPLES::
770
768
771
769
sage: J0(23).endomorphism_ring()
@@ -808,12 +806,11 @@ def __init__(self, A, gens=None, category=None):
808
806
self ._A = A
809
807
810
808
# Initialise self with the correct category.
811
- # We need to initialise it as a ring first
812
809
if category is None :
813
810
homset_cat = A .category ()
814
811
else :
815
812
homset_cat = category
816
- # Remark: Ring .__init__ will automatically form the join
813
+ # Remark: Parent .__init__ will automatically form the join
817
814
# of the category of rings and of homset_cat
818
815
Parent .__init__ (self , A .base_ring (), category = homset_cat .Endsets ())
819
816
Homspace .__init__ (self , A , A , cat = homset_cat )
@@ -825,7 +822,7 @@ def __init__(self, A, gens=None, category=None):
825
822
826
823
def _repr_ (self ):
827
824
"""
828
- Return the string representation of self.
825
+ Return the string representation of `` self`` .
829
826
830
827
EXAMPLES::
831
828
@@ -853,18 +850,16 @@ def abelian_variety(self):
853
850
854
851
def index_in (self , other , check = True ):
855
852
"""
856
- Return the index of self in other.
853
+ Return the index of `` self`` in `` other`` .
857
854
858
855
INPUT:
859
856
860
-
861
- - ``other`` - another endomorphism subring of the
857
+ - ``other`` -- another endomorphism subring of the
862
858
same abelian variety
863
859
864
- - ``check`` - bool (default: True); whether to do some
860
+ - ``check`` -- bool (default: `` True`` ); whether to do some
865
861
type and other consistency checks
866
862
867
-
868
863
EXAMPLES::
869
864
870
865
sage: R = J0(33).endomorphism_ring()
0 commit comments