Callable library question: How to truncate a polymake::Vector?
Posted: 04 Sep 2015, 13:54
I am using the callable library of Polymake 2.14.
Let's say I define a vector of size 4 in my C++ program, i.e.,
After doing some computations I need to discard the last element. If vec would be of type std::vector, I'd just use .pop_back(), but this doesn't seem to work. What's the "right" way to do it?
Let's say I define a vector of size 4 in my C++ program, i.e.,
Code: Select all
polymake::Vector<Rational> vec {4};