I would like to compute all lattice points of a polytope via the callable library, e.g.
Code: Select all
Main pm;
pm.set_application("polytope");
perl::Object p("Polytope<Rational>");
p.take("VERTICES") << (ones_vector<Rational>() |
5*unit_matrix<Rational>(4));
Matrix<Rational> latpoints = p.give("LATTICE_POINTS");
Code: Select all
libc++abi.dylib: terminating with uncaught exception of type pm::perl::exception: unknown property Polytope<Rational>::LATTICE_POINTS at /usr/local/share/polymake/perllib/Polymake/Core/ObjectType.pm line 459.
Polymake::Core::ObjectType::encode_request_element('Polymake::Core::ObjectType=ARRAY(0x1015b60e8)', 'LATTICE_POINTS', 'Polymake::polytope::Polytope__Rational=ARRAY(0x102c763c8)', undef) called at /usr/local/share/polymake/perllib/Polymake/Core/ObjectType.pm line 474
Polymake::Core::ObjectType::encode_read_request('Polymake::Core::ObjectType=ARRAY(0x1015b60e8)', 'LATTICE_POINTS', 'Polymake::polytope::Polytope__Rational=ARRAY(0x102c763c8)') called at /usr/local/share/polymake/perllib/Polymake/Core/Object.pm line 1452
Polymake::Core::Object::give_pv called at /usr/local/share/polymake/perllib/Polymake/Core/Object.pm line 1468
Polymake::Core::Object::give('Polymake::polytope::Polytope__Rational=ARRAY(0x102c763c8)', 'LATTICE_POINTS') called at [...]/polymake-beta/lib/callable/src/perl/Main.cc line 0
eval {...} called at [...]/polymake-beta/lib/callable/src/perl/Main.cc line
Code: Select all
Matrix<Rational> latpoints = p.give("INTERIOR_LATTICE_POINTS");
I'm using a Mac (OS X 10.9.4) and the polymake beta 2.13. I tested it on a Linux machine with polymake 2.12.5 as well and got the same errors.