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

Commit

Permalink
Trac #27366 update .volume (to new parameter set)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Mar 7, 2019
1 parent 294fbe1 commit 6cf71c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5051,8 +5051,7 @@ def volume(self, measure='ambient', engine='auto', **kwds):
affine_hull = self.affine_hull(
orthogonal=True, as_polyhedron=True, as_affine_map=True)
polyhedron = affine_hull['polyhedron']
A = affine_hull['linear_transformation'].matrix()
b = affine_hull['shift']
A = affine_hull['affine_map'][0].matrix()
Adet = (A.transpose() * A).det()
return polyhedron.volume(measure='ambient', engine=engine, **kwds) / sqrt(Adet)
elif measure == 'induced_rational':
Expand Down

0 comments on commit 6cf71c7

Please sign in to comment.