Search found 32 matches

Go to advanced search

by mws
03 Feb 2016, 22:22
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Ok, I finally understood the segfaults. They seem to have occured because I used

Code: Select all

polymake::Main pm; pm.set_application("polytope");
too late in my code.

Thanks to all who have taken the time to contribute to this thread -- you have helped me a great deal!
by mws
02 Feb 2016, 12:39
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Just to make sure that I understand your answer correctly: You suggest to use something like polymake::polytope::beneath_beyond_algo<polymake::QuadraticExtension<polymake::Rational>> algo(H, false); algo.compute(polymake::entire(polymake::sequence(0, H.rows()))); polymake::Matrix<polymake::Quadratic...
by mws
01 Feb 2016, 21:48
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Dear Benjamin, Thanks for your helpful reply. Since my polytopes are defined via hyperplanes and not points, I looked at beneath_beyond.h to find the appropriate constructor. Unfortunately I couldn't find anything. However, I guess that I am missing something... So can you maybe tell me how to you u...
by mws
01 Feb 2016, 10:58
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Ok, I see. Then I have three questions: How exactly do I use beneath-beyond with the callable library? Could someone maybe provide a minimal working example? Does it use Perl in any way? I am just asking because I would like to avoid since it slows down computations greatly in my experience. What ex...
by mws
31 Jan 2016, 09:06
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Here is another problem that I encoutered while trying to use the QuadraticExtension type: If I compile the following code #include <iostream> #include <polymake/Main.h> #include <polymake/Rational.h> #include <polymake/QuadraticExtension.h> #include <polymake/polytope/ppl_interface.h> int main(void...
by mws
30 Jan 2016, 15:07
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Actually, now that I am editing many, many lines of code where I change Rational to QuadraticExtension, I think it is little annoying that QuadraticExtension has so much fewer initialization and altering methods to offer. This not only results in uglier code but also requires a lot of effort on the ...
by mws
29 Jan 2016, 14:29
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Yes, that's basically what I was hoping for. For now your suggested solution also works fine, it just makes my code look a bit more clumsy. But I think I'll get over that. ;-)
by mws
29 Jan 2016, 14:09
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Oh, I see. So you cannot directly modify an existing QuadraticExtension variable after creating it?
by mws
29 Jan 2016, 13:11
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

I feel stupid for asking, but how do you assign a new value to an existing QuadraticExtension variable? Let's say I defined

Code: Select all

QuadraticExtension<Rational> q {1, 2, 3};
Then q corresponds to the number 1 + 2 \sqrt(3). How can I change q's value?
by mws
25 Jan 2016, 06:38
Forum: Helpdesk
Topic: QuadraticExtension in Polymake 3.0
Replies: 17
Views: 16703

Re: QuadraticExtension in Polymake 3.0

Great, many thanks for the quick answer.

Go to advanced search