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

Commit

Permalink
Trac #27366: fix no-variables-bug-wrong-parent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Mar 10, 2019
1 parent 2bbfdc2 commit 3c09477
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7001,9 +7001,10 @@ def affine_hull(self, as_polyhedron=None, as_affine_map=False,
W = matrix([list(L(v)) for v in vi]).transpose()

# transform the coordinates
t = vector(PolynomialRing(self.base_ring(), 't', len(vi)).gens())
T = PolynomialRing(self.base_ring(), 't', len(vi))
t = vector(T.gens())
beta = W.inverse() * t
coordinate_images = v0 + sum(b * v for b, v in zip(beta, vi))
coordinate_images = v0.change_ring(T) + sum(b * v for b, v in zip(beta, vi))
result['coordinate_images'] = tuple(coordinate_images)

else:
Expand Down

0 comments on commit 3c09477

Please sign in to comment.