Search found 38 matches

Go to advanced search

by ren
28 Apr 2017, 11:52
Forum: Helpdesk
Topic: Face lattices of polytopes
Replies: 3
Views: 5612

Face lattices of polytopes

I have a small problem with face lattices of polytopes. The following code from the tutorial ( https://polymake.org/doku.php/tutorial/face_lattice_tutorial ) does not work anymore: $p = n_gon(5); $HD = $p->HASSE_DIAGRAM; for (my $k=$HD->DIMS->[1]; $k<$HD->DIMS->[2]; ++$k) { print $HD->FACES->[$k] } ...
by ren
13 Dec 2016, 19:46
Forum: Helpdesk
Topic: Drawing graphs using attracting and repelling forces
Replies: 1
Views: 4111

Drawing graphs using attracting and repelling forces

Is there a tutorial on how to draw graphs in polymake using attracting and repelling forces? I mean as described in Section 4.1 of "Drawing polytopal graphs with polymake" (https://arxiv.org/abs/0711.2397) I am currently looking for ways to arrange the Hasse Diagram of a tropical Kummer qu...
by ren
13 Dec 2016, 14:10
Forum: Helpdesk
Topic: Converting Vector<Int> to Vector<TropicalNumber<Max> >
Replies: 2
Views: 4581

Re: Converting Vector<Int> to Vector<TropicalNumber<Max> >

Ah sorry, the code I meant to post was $wRat = new Vector<Rational>([0,1/12,2/3,4/3,13/6,1/12,0,3/8,9/8,0,1/24,1/4,1/8,1/4,5/12]); $wRat = $w*24; $wInt = new Vector<Int>($wRat); $wTrop = new Vector<TropicalNumber<Max> >($wInt); The last line causes an error in my polymake, which is version 3.0. I'll...
by ren
13 Dec 2016, 12:58
Forum: Helpdesk
Topic: Converting Vector<Int> to Vector<TropicalNumber<Max> >
Replies: 2
Views: 4581

Converting Vector<Int> to Vector<TropicalNumber<Max> >

What is the proper way to convert a Vector<Int> to Vector<TropicalNumber<Max> >? I am currently admiring polymake's features for tropical geometry and trying to construct a curve from a subdivision of the Newton polygon: $points = new Matrix<Int>( [[1,0,0], [1,1,0], [1,2,0], [1,3,0], [1,4,0], [1,0,1...
by ren
14 Nov 2016, 16:06
Forum: Helpdesk
Topic: reconfiguring gfan.rules in local folder
Replies: 3
Views: 4970

Re: reconfiguring gfan.rules in local folder

I see, thanks for the suggestion!

I was actually using the polymake that I compiled myself, but forget my question. As long as I can compute secondary fans I am happy. :)
by ren
14 Nov 2016, 14:54
Forum: Helpdesk
Topic: reconfiguring gfan.rules in local folder
Replies: 3
Views: 4970

reconfiguring gfan.rules in local folder

In gfan.rules, line 49, the function "eliminate_denominators_entire_affine" is not defined. I tried to fix it by removing the function in the gfan.rules in my local directories /users/others/reny/build/share/polymake/apps/fan/rules/gfan.rules however after reconfiguring gfan.rules, the pro...
by ren
14 Nov 2016, 14:31
Forum: Helpdesk
Topic: random access incidence vector of HASSE_DIAGRAM->FACES
Replies: 3
Views: 4816

Re: random access incidence vector of HASSE_DIAGRAM->FACES

Thanks, I will convert it to an array then!
by ren
14 Nov 2016, 12:49
Forum: Helpdesk
Topic: random access incidence vector of HASSE_DIAGRAM->FACES
Replies: 3
Views: 4816

random access incidence vector of HASSE_DIAGRAM->FACES

Not sure if this is intended behaviour, but this works: $simplexHasse = simplex(2)->HASSE_DIAGRAM; $simplexFace = $simplexHasse->FACES->[4]; print $simplexFace->[0]; print $simplexFace->[1]; while this does not: $simplexHasse = simplex(2)->HASSE_DIAGRAM; $simplexFace = $simplexHasse->FACES->[4]; pri...
by ren
13 Nov 2016, 12:20
Forum: Helpdesk
Topic: Manipulating entries of Matrices
Replies: 1
Views: 3437

Manipulating entries of Matrices

How do you access or change single entries of matrices? For example, given the following polytope, I would like to construct the convex hull of its finite vertices and the origin: $q = new Polytope<Rational>(POINTS=>[[0,1,0],[0,0,1],[1,0,3],[1,1,1],[1,3,0]]); My naive approach was to check which row...
by ren
03 Jun 2014, 15:50
Forum: Helpdesk
Topic: Compute the intersection of two fans
Replies: 10
Views: 12832

Re: Compute the intersection of two fans

Hm, if I may highjack this thread: if I want to create a fan consisting solely out of the lineality space, what would be the prefered way? a) a fan consisting of a lineality space and the empty cone as maximal cone b) a fan consisting of a lineality space and the origin as maximal cone Simon chose t...

Go to advanced search