For example, given the following polytope, I would like to construct the convex hull of its finite vertices and the origin:
Code: Select all
$q = new Polytope<Rational>(POINTS=>[[0,1,0],[0,0,1],[1,0,3],[1,1,1],[1,3,0]]);
edit: nevermind, you can access matrix elements using "->[j]" or "->elem(i,j)" and you change matrix elements using the latter.