File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2439,7 +2439,7 @@ def Gale_transform(self):
24392439 m = m .augment (matrix (ZZ , m .nrows (), 1 , [1 ] * m .nrows ()))
24402440 return matrix (ZZ , m .integer_kernel ().matrix ())
24412441
2442- def is_polytopal (self ):
2442+ def is_polytopal (self ) -> bool :
24432443 r"""
24442444 Check if ``self`` is the normal fan of a polytope.
24452445
@@ -2491,9 +2491,9 @@ def is_polytopal(self):
24912491 from sage .geometry .polyhedron .constructor import Polyhedron
24922492 pc = PointConfiguration (self .rays ())
24932493 v_pc = [tuple (p ) for p in pc ]
2494- pc_to_indices = {tuple (p ):i for ( i , p ) in enumerate (pc )}
2495- indices_to_vr = [ tuple (r ) for r in self .rays ()]
2496- cone_indices = [ cone .ambient_ray_indices () for cone in self .generating_cones ()]
2494+ pc_to_indices = {tuple (p ):i for i , p in enumerate (pc )}
2495+ indices_to_vr = ( tuple (r ) for r in self .rays ())
2496+ cone_indices = ( cone .ambient_ray_indices () for cone in self .generating_cones ())
24972497 translator = [pc_to_indices [t ] for t in indices_to_vr ]
24982498 translated_cone_indices = [[translator [i ] for i in ci ] for ci in cone_indices ]
24992499 dc_pc = pc .deformation_cone (translated_cone_indices )
You can’t perform that action at this time.
0 commit comments