workshops:workshop0311-material

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
workshop0311-material [2012/03/19 14:27] – added CPP presentation benmuellworkshops:workshop0311-material [2019/01/25 13:49] – ↷ Page moved from workshop0311-material to workshops:workshop0311-material oroehrig
Line 69: Line 69:
 use Benchmark qw(:all); use Benchmark qw(:all);
 $r=rand_sphere(3,1000,seed=>1); $t=timeit(1,'$r->FACETS;'); print timestr($t); $r=rand_sphere(3,1000,seed=>1); $t=timeit(1,'$r->FACETS;'); print timestr($t);
-$r=rand_sphere(3,1000,seed=>1); $t=timeit(1,'prefer_now("beneath_beyond");$r->FACETS;'); print timestr($t);+$r=rand_sphere(3,1000,seed=>1); prefer_now("beneath_beyond"); $t=timeit(1,'$r->FACETS;'); print timestr($t);
 </code> </code>
 This code does not work in a script file (.pl) because of polymake's modifications to Perl. You rather want to use something like this. This code does not work in a script file (.pl) because of polymake's modifications to Perl. You rather want to use something like this.
Line 265: Line 265:
 $tcyc = cyclic(3,5); $tcyc = cyclic(3,5);
 $tcyc->VISUAL_PSEUDOVERTEX_GRAPH; $tcyc->VISUAL_PSEUDOVERTEX_GRAPH;
-$ths = new TropicalHypersurface(MONOMIALS=>[[1,1,2,1],[0,1,3,1],[0,3,2,0],[1,2,1,1]],COEFFICIENTS=>[1,3,2,2]);+$ths = new Hypersurface(MONOMIALS=>[[1,1,2,1],[0,1,3,1],[0,3,2,0],[1,2,1,1]],COEFFICIENTS=>[1,3,2,2]);
 $ths->VISUAL; $ths->VISUAL;
 </code> </code>
Line 279: Line 279:
  
 ====PRL==== ====PRL====
-The documented [[tutorial:perl_continued|PRL-tutorial]].+The documented [[user_guide:perl_continued|PRL-tutorial]].
 All examples in one file:\\ All examples in one file:\\
 {{:prl.script|}} {{:points.demo|}} {{:prl.script|}} {{:points.demo|}}
  • workshops/workshop0311-material.txt
  • Last modified: 2019/01/29 21:46
  • by 127.0.0.1