Search found 337 matches

Go to advanced search

by gawrilow
18 Jul 2012, 10:52
Forum: Helpdesk
Topic: using polymake in a C++ program
Replies: 18
Views: 19252

Re: using polymake in a C++ program

The bootstrap functions are produced automatically by the perl extension converter xsubpp, therefore you can't find them in the source code. The one you are missing stems from the source file lib/core/src/perl/Ext.xs, which is first converted to an intermediate file Ext.c (located in the build direc...
by gawrilow
29 May 2012, 11:53
Forum: Helpdesk
Topic: Create multiple subobjects using rules
Replies: 2
Views: 4302

Re: Create multiple subobjects using rules

You have poked at two long-term construction sites, unfortunately. In your case, multiple subobjects are not appropriate, because the individual instances are not related to each other, they can be even deleted at the user's will. You need indeed the Array<perl::Object>. The number of the ticket dev...
by gawrilow
14 May 2012, 12:31
Forum: Helpdesk
Topic: problem with 'load'-command
Replies: 5
Views: 6365

Re: problem with 'load'-command

Please create a trac ticket and upload your "ill" file as an attachment to it. Hopefully it will arrive unchanged. I'm still puzzled about the non-perceivable difference between your data files.
by gawrilow
13 May 2012, 23:15
Forum: Helpdesk
Topic: problem with 'load'-command
Replies: 5
Views: 6365

Re: problem with 'load'-command

Sorry, I could not reproduce the error. Both files look the same (up to concrete numeric values, naturally). Maybe you've got some invisible control character into the "bad" one, which disappeared in the posted copy?
by gawrilow
16 Apr 2012, 01:19
Forum: Helpdesk
Topic: Creating a graph with edge properties
Replies: 7
Views: 9378

Re: Creating a graph with edge properties

Now multigraphs are implemented; please use the type Graph<DirectedMulti> or Graph<UndirectedMulti> depending on your needs (and, naturally, the same tag for EdgeMaps and other attribute maps attached to your graph). Please refer to the rulefile apps/common/rules/graph_types to get acquainted with n...
by gawrilow
02 Apr 2012, 23:33
Forum: Helpdesk
Topic: Create a PolyhedralFan from maximal cones
Replies: 3
Views: 5631

Re: Create a PolyhedralFan from maximal cones

It indeed works like a usual perl hash map, but requires a little adornment: the return value of the constructor $h=new HashMap<Vector, Int>; is a reference , hence all operations must be accompanied with a dereferencing: if (defined $h->{$v}) { ... } $h->{$v}=$i; delete $h->{$v}; foreach my $k (key...
by gawrilow
02 Apr 2012, 11:30
Forum: Helpdesk
Topic: Create a PolyhedralFan from maximal cones
Replies: 3
Views: 5631

Re: Create a PolyhedralFan from maximal cones

At the risk of telling a complete nonsense... if you really know that your cones are the maximal ones and their list is complete, you can pass your data to the constructor as RAYS and MAXIMAL_CONES right away. You should only take care of duplicate rays. To this end, you can maintain a HashMap<Vecto...
by gawrilow
26 Mar 2012, 15:30
Forum: Helpdesk
Topic: Creating a graph with edge properties
Replies: 7
Views: 9378

Re: Creating a graph with edge properties

I'd like to have one such that it is easy to display these ints in a $graph->VISUAL; call. The EdgeMaps (as well as NodeMaps) are not automatically involved in the visualization process. You'll have to find some way to make the values from the map visible, e.g. by using them as EdgeLabels or invent...
by gawrilow
03 Mar 2012, 00:31
Forum: Installing polymake
Topic: Fedora build challenges
Replies: 11
Views: 16260

Re: Fedora build challenges

This is the last problem for now, I think. I see two undefined symbols in tropical.so. They are C++ symbols, which demangle to: polymake::tropical::tropicalize(pm::Polynomial<pm::UniPolynomial<pm::Rational, pm::Rational>, int> const&) polymake::tropical::pointlift(pm::Vector<pm::Rational> const...
by gawrilow
03 Mar 2012, 00:12
Forum: Installing polymake
Topic: Fedora build challenges
Replies: 11
Views: 16260

Re: Fedora build challenges

When building with rpm, first the sources are compiled, then they are installed into a staging area where the package is created. Unfortunately, running "make install DESTDIR=$RPM_BUILD_ROOT" rewrites conf.make with the new $DESTDIR path, which leads to recompilation of a few files, with ...

Go to advanced search