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

Commit 59a2cc1

Browse files
author
Matthias Koeppe
committed
polymake/optimization.rst: Use getattr
1 parent ec05386 commit 59a2cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/en/thematic_tutorials/polymake/optimization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ following code (possibly easier):
566566
567567
In Sage::
568568

569-
sage: zero = polymake("unit_vector<Rational>({}, 0)".format(pin.DIM() + 1))
569+
sage: zero = getattr(polymake, "unit_vector<Rational>")(pin.DIM() + 1, 0)
570570
sage: B = polymake.new_object("Polytope<Rational>", POINTS=zero)
571571
sage: for r in rays:
572572
....: M = polymake.new_object("Matrix<Rational>", polymake.primitive(r))

0 commit comments

Comments
 (0)