Search found 337 matches

Go to advanced search

by gawrilow
24 Apr 2013, 23:36
Forum: Helpdesk
Topic: Callable library, Hasse diagram
Replies: 9
Views: 10453

Re: Callable library, Hasse diagram

The same problem has already been discussed in another thread. Be sure to read to the end before taking any actions :-)
by gawrilow
28 Mar 2013, 10:57
Forum: Helpdesk
Topic: Homology
Replies: 5
Views: 6826

Re: Homology

The reference documentation for property type HomologyGroup (linked from HOMOLOGY property) briefly lists the field names, albeit without further explanation. Admittedly, there is still room for improvement.
by gawrilow
27 Mar 2013, 22:26
Forum: Helpdesk
Topic: Homology
Replies: 5
Views: 6826

Re: Homology

For convenience, there are also named accessors:

Code: Select all

print $sc->HOMOLOGY->[$dim]->torsion; print $sc->HOMOLOGY->[$dim]->betti_number;
With some luck, polymake will even auto-TAB-complete these names on the command line.
by gawrilow
07 Mar 2013, 23:34
Forum: Helpdesk
Topic: Vertex labels vs indices
Replies: 3
Views: 5687

Re: Vertex labels vs indices

Code: Select all

print rows_labeled($sc->FACETS, undef, $sc->VERTEX_INDICES);
does almost exactly what you want. Each row is decorated with a sequential number, but this should not disturb you.
by gawrilow
04 Mar 2013, 23:13
Forum: Helpdesk
Topic: Visual in callable library
Replies: 5
Views: 6548

Re: Visual in callable library

But still, I'm wondering why are you doing all this in a C++ program and not in a script. The C++ clients and callable library were invented for other purposes. In a script, you can try out all possible angles, colors, styles, etc. in an instant. Do you simply abhor perl?
by gawrilow
03 Mar 2013, 19:54
Forum: Helpdesk
Topic: Visual in callable library
Replies: 5
Views: 6548

Re: Visual in callable library

No, you can't. sketch is not a method, it is a free function. I'm surprised that you are trying to do such things from a C++ program. Usually producing pictures, especially with a fixed visualization back-end, is something I would expect to see in a script. Probably you have invented a new family of...
by gawrilow
02 Mar 2013, 23:16
Forum: Helpdesk
Topic: Visual in callable library
Replies: 5
Views: 6548

Re: Visual in callable library

Is VISUAL not returning an perl::Object? Well, it's indeed a confusing naming. The C++ class perl::Object is written to hold the so called "big objects" like Polytope, Fan, SimplicialComplex, or Ideal. They are indeed implemented as perl objects, but their distinguishing trait is that the...
by gawrilow
05 Feb 2013, 18:37
Forum: Helpdesk
Topic: edge-neighbors of a facet
Replies: 16
Views: 22038

Re: edge-neighbors of a facet

Yes and no. The order of nodes of dim=0 or co-dim=1 is indeed identical to that of the vertices resp. facets of the polyhedron. But you should never access the DIMS property directly, some face lattice objects are built in ascending dimension order, others in descending order. Always use the method ...
by gawrilow
08 Dec 2012, 00:19
Forum: Helpdesk
Topic: using polymake in a C++ program
Replies: 18
Views: 19251

Re: using polymake in a C++ program

... Fink says the term-readline-gnu-pm5123 is installed, and I did not installed anything to a non-standard location. I tried to fix this by changing the PERL5LIB, but it didn't work. In fact, I'm not sure what file exactly the configure script is looking for. Is it the /sw/lib/perl5-core/5.12.3/Te...
by gawrilow
20 Nov 2012, 14:50
Forum: Helpdesk
Topic: edge-neighbors of a facet
Replies: 16
Views: 22038

Re: edge-neighbors of a facet

I've found the bug. Please find attached a small patch fixing it. I suppose you are working with release 2.12. Apply the patch using command 'patch -p1' from the unpacked source directory of polymake, then run 'make install'.

Go to advanced search