Search found 246 matches

Go to advanced search

by gawrilow
22 Apr 2019, 16:10
Forum: Helpdesk
Topic: serializing a SparseMatrix in c++
Replies: 1
Views: 6

Re: serializing a SparseMatrix in c++

There is a generic output operator for all kinds of matrices, but it deliberately does not apply to standard streams by default. You must add a small decoration: wrap(outputFile) << "SparseMatrix: "<< someSparseMatrix; BTW, cout that you see everywhere in polymake is not std::cout but an output chan...
by gawrilow
20 Apr 2019, 14:24
Forum: Helpdesk
Topic: Return values of c++ functions connected to perl
Replies: 1
Views: 16

Re: Return values of c++ functions connected to perl

std::vector is fine but your specific region class is unknown to polymake. You should introduce some serialization for it. If it's something that can easily be parsed from a string and printed out, you can define operator<< and operator>> for std::ostream resp. std::istream. If it's a complex data s...
by gawrilow
05 Apr 2019, 09:56
Forum: Helpdesk
Topic: Determining version
Replies: 7
Views: 103

Re: Determining version

is polymake-config assuming that we have the source code somewhere (and know where that is)? No, having the source code is not necessary. polymake-config is a small script installed together with the rest of polymake, so it's contained in the Debian/Ubuntu packages, Mac disc images, etc. It resides...
by gawrilow
04 Apr 2019, 23:29
Forum: Helpdesk
Topic: Determining version
Replies: 7
Views: 103

Re: Determining version

polymake-config --version should help. Actually, polymake 3.0 is quite an ancient version, do you really want to spend time on supporting it in a special way? We'd prefer to not need to know whether the user has polymake installed, if they have it. Is this a feature request to the polymake team or ...
by gawrilow
27 Mar 2019, 18:57
Forum: Helpdesk
Topic: Problem with Installing Polymake
Replies: 7
Views: 146

Re: Problem with Installing Polymake

The source files, including rules, are usually installed in read-only mode, to prevent inadvertent changes. It's not the reason of your next problem. Again, without seeing any logs I can only guess that the build process was not completed before and the shared module group.so does not contain functi...
by gawrilow
26 Mar 2019, 13:51
Forum: Helpdesk
Topic: The root_system function
Replies: 8
Views: 121

Re: The root_system function

Vectors offer random access to their elements, so simply do this:

Code: Select all

my $neweq = new Vector($n + 1); # automatically fills with zeroes $neweq->[$l + 1] = 1; $neweq->[$l + $i + 1] = -1;
by gawrilow
26 Mar 2019, 10:52
Forum: Helpdesk
Topic: Problem with Installing Polymake
Replies: 7
Views: 146

Re: Problem with Installing Polymake

If you are on a Linux machine, you'd ideally not have to mess with perlbrew altogether but simply install system packages. polymake is happy with any perl starting with 5.18 which is about 6 years old. But you must have your reasons for using perlbrew, and in this case you can't use system packages ...
by gawrilow
26 Mar 2019, 10:40
Forum: Helpdesk
Topic: The root_system function
Replies: 8
Views: 121

Re: The root_system function

Sorry, your version is too old. root_system was introduced in 3.1 .
by gawrilow
21 Mar 2019, 23:51
Forum: Helpdesk
Topic: Problem with Installing Polymake
Replies: 7
Views: 146

Re: Problem with Installing Polymake

This looks really bad. The build process should not use the static library libperl.a but rather the dynamic one, libperl.dylib. Is the perlbrew installation screwed? Unfortunately, I can't reproduce it, on the only Mac system I can get hold of, I'm using the system perl, /usr/bin/perl. This works fi...
by gawrilow
21 Mar 2019, 23:46
Forum: Helpdesk
Topic: The root_system function
Replies: 8
Views: 121

Re: The root_system function

root_system is defined in application "polytope", so you can call it by qualified name "polytope::root_system(...)". Namespace prefix can be omitted when your current application is "polytope" or "fan". In your post, the shell prompt says "polymake" which looks suspicious - there is no such applicat...

Go to advanced search

cron