@@ -522,7 +522,8 @@ def as_fan_morphism(self):
522
522
523
523
OUTPUT: A :class:`SchemeMorphism_polynomial_toric_variety`.
524
524
525
- Raises a ``TypeError`` if the morphism cannot be written in such a way.
525
+ This raises a :class:`TypeError` if the morphism cannot be written
526
+ in such a way.
526
527
527
528
EXAMPLES::
528
529
@@ -681,9 +682,10 @@ def as_polynomial_map(self):
681
682
682
683
OUTPUT:
683
684
684
- A :class:`SchemeMorphism_polynomial_toric_variety`. Raises a
685
- ``TypeError`` if the morphism cannot be written in terms of
686
- homogeneous polynomials.
685
+ A :class:`SchemeMorphism_polynomial_toric_variety`.
686
+
687
+ This raises a :class:`TypeError` if the morphism cannot be
688
+ written in terms of homogeneous polynomials.
687
689
688
690
The defining polynomials are not necessarily unique. There are
689
691
choices if multiple ambient space ray generators project to
@@ -717,7 +719,7 @@ def as_polynomial_map(self):
717
719
orbit = self .domain ()
718
720
codomain_fan = self .codomain ().fan ()
719
721
R = orbit .coordinate_ring ()
720
- polys = [ R .one () ] * codomain_fan .nrays ()
722
+ polys = [R .one ()] * codomain_fan .nrays ()
721
723
for i in self ._defining_cone .ambient_ray_indices ():
722
724
polys [i ] = R .zero ()
723
725
ray_index_map = self ._reverse_ray_map ()
@@ -1071,8 +1073,8 @@ def as_polynomial_map(self):
1071
1073
1072
1074
OUTPUT: A :class:`SchemeMorphism_polynomial_toric_variety`.
1073
1075
1074
- Raises a `` TypeError`` if the morphism cannot be written in terms of
1075
- homogeneous polynomials.
1076
+ This raises a :class:` TypeError` if the morphism cannot be written
1077
+ in terms of homogeneous polynomials.
1076
1078
1077
1079
EXAMPLES::
1078
1080
@@ -1105,8 +1107,8 @@ def as_polynomial_map(self):
1105
1107
'homogeneous polynomials' )
1106
1108
polys [i ] *= x ** d
1107
1109
if phi .domain_fan ().virtual_rays ():
1108
- raise NotImplementedError ("polynomial representations for fans "
1109
- "with virtual rays are not implemented yet" )
1110
+ raise NotImplementedError ("polynomial representations for fans with "
1111
+ " virtual rays are not implemented yet" )
1110
1112
return SchemeMorphism_polynomial_toric_variety (self .parent (), polys )
1111
1113
1112
1114
def is_bundle (self ):
@@ -1478,7 +1480,7 @@ def fiber_component(self, domain_cone, multiplicity=False):
1478
1480
embedding = SchemeMorphism_fan_fiber_component_toric_variety (self , domain_cone )
1479
1481
if multiplicity :
1480
1482
return embedding .domain (), \
1481
- self .fan_morphism ().index (embedding .base_cone ())
1483
+ self .fan_morphism ().index (embedding .base_cone ())
1482
1484
else :
1483
1485
return embedding .domain ()
1484
1486
@@ -1610,7 +1612,7 @@ def is_union_in_fan(self, c0, c1):
1610
1612
except ValueError :
1611
1613
return False
1612
1614
1613
- m = matrix (ZZ , n , n , lambda i ,j : is_union_in_fan (self ,prim [i ], prim [j ]))
1615
+ m = matrix (ZZ , n , n , lambda i , j : is_union_in_fan (self , prim [i ], prim [j ]))
1614
1616
1615
1617
for i in range (n ):
1616
1618
m [i , i ] = 0
@@ -1728,9 +1730,10 @@ def as_polynomial_map(self):
1728
1730
1729
1731
OUTPUT:
1730
1732
1731
- A :class:`SchemeMorphism_polynomial_toric_variety`. Raises a
1732
- ``ValueError`` if the morphism cannot be written in terms of
1733
- homogeneous polynomials.
1733
+ A :class:`SchemeMorphism_polynomial_toric_variety`.
1734
+
1735
+ This raises a :class:`ValueError` if the morphism cannot be
1736
+ written in terms of homogeneous polynomials.
1734
1737
1735
1738
EXAMPLES::
1736
1739
@@ -1831,7 +1834,7 @@ def projection(ray):
1831
1834
star_rays = set ()
1832
1835
for cone in fm .relative_star_generators (defining_cone ):
1833
1836
star_rays .update (cone .rays ())
1834
- projected_rays = [ projection (r ) for r in cone .rays () ]
1837
+ projected_rays = [projection (r ) for r in cone .rays ()]
1835
1838
cones .append (Cone (projected_rays ))
1836
1839
fiber_fan = Fan (cones )
1837
1840
0 commit comments