Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: Avoid…
Browse files Browse the repository at this point in the history
… imports from .all
  • Loading branch information
Matthias Koeppe committed Oct 21, 2021
1 parent 056b8d4 commit 5fe8aa6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ cdef class CombinatorialPolyhedron(SageObject):
far_face = tuple(i for i in range(len(Vrep) - 1))
self._dimension = data.dim()
from sage.matrix.constructor import matrix
from sage.rings.all import ZZ
from sage.rings.integer_ring import ZZ
data = matrix(ZZ, data.incidence_matrix().rows()
+ [[ZZ.one() for _ in range(len(facets))]])
else:
Expand Down Expand Up @@ -441,7 +441,7 @@ cdef class CombinatorialPolyhedron(SageObject):
self._n_Vrepresentation = data.nrows()

if not isinstance(data, Matrix_integer_dense):
from sage.rings.all import ZZ
from sage.rings.integer_ring import ZZ
from sage.matrix.constructor import matrix
data = matrix(ZZ, data, sparse=False)
assert isinstance(data, Matrix_integer_dense), "conversion to ``Matrix_integer_dense`` didn't work"
Expand Down Expand Up @@ -1675,7 +1675,7 @@ cdef class CombinatorialPolyhedron(SageObject):
if not self._f_vector:
raise ValueError("could not determine f_vector")
from sage.modules.free_module_element import vector
from sage.rings.all import ZZ
from sage.rings.integer_ring import ZZ
f_vector = vector(ZZ, self._f_vector)
f_vector.set_immutable()
return f_vector
Expand Down

0 comments on commit 5fe8aa6

Please sign in to comment.