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

Commit 6cf71c7

Browse files
committedMar 7, 2019
Trac #27366 update .volume (to new parameter set)
1 parent 294fbe1 commit 6cf71c7

File tree

1 file changed

+1
-2
lines changed
  • src/sage/geometry/polyhedron

1 file changed

+1
-2
lines changed
 

‎src/sage/geometry/polyhedron/base.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5051,8 +5051,7 @@ def volume(self, measure='ambient', engine='auto', **kwds):
50515051
affine_hull = self.affine_hull(
50525052
orthogonal=True, as_polyhedron=True, as_affine_map=True)
50535053
polyhedron = affine_hull['polyhedron']
5054-
A = affine_hull['linear_transformation'].matrix()
5055-
b = affine_hull['shift']
5054+
A = affine_hull['affine_map'][0].matrix()
50565055
Adet = (A.transpose() * A).det()
50575056
return polyhedron.volume(measure='ambient', engine=engine, **kwds) / sqrt(Adet)
50585057
elif measure == 'induced_rational':

0 commit comments

Comments
 (0)
This repository has been archived.