Changeset 09cb63f in git
- Timestamp:
- Oct 4, 2016, 10:51:10 PM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d5122e12287fd5f17a9443a21ced8b72679e4b57
- Parents:
- 50a0eb6a06430df83592ea9590c76105f926b5e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/tropical.lib
r50a0eb r09cb63f 4727 4727 // which in a later version 4728 4728 // should be interpreded by Singular 4729 intvec wneu=choosegfanvector(read("/tmp/gfanoutput"),0, anzahlvariablen)[1];4729 intvec wneu=choosegfanvector(read("/tmp/gfanoutput"),0,homogentest)[1]; 4730 4730 setring PREGFANRING; 4731 4731 } … … 5450 5450 ///////////////////////////////////////////////////////////////////////// 5451 5451 5452 static proc choosegfanvector (string s,int findall,int anzahlvariablen)5453 "USAGE: choosegfanvector(s ); s string5452 static proc choosegfanvector (string s,int findall,int homogentest) 5453 "USAGE: choosegfanvector(s,fa,h); s string, fa,h int 5454 5454 RETURN: list, the jth entry is the jth integer vector contained in s 5455 5455 NOTE: the procedure is called from tropicalparametrise" … … 5467 5467 // the last entry in ww should correspond to the homogenisation variable 5468 5468 // (and can be omitted), unless the input to gfan was already homogeneous 5469 if ( anzahlvariablen==size(ww)-1)5469 if (homogentest==0) 5470 5470 { 5471 5471 ww=ww[1..size(ww)-1]; … … 5497 5497 { 5498 5498 execute("www=intvec("+w+");"); 5499 if ( anzahlvariablen==size(ww)-1)5499 if (homogentest==0) 5500 5500 { 5501 5501 ww[i]=intvec(www[1..size(www)-1]); … … 5667 5667 int numberdeletedvariables; // the number of deleted variables 5668 5668 int oldanzahlvariablen=anzahlvariablen; // anzahlvariablen for later reference 5669 int homogentest=0; 5669 5670 list liftings,partliftings; // the computed liftings (all resp. partly) 5670 5671 // consider each ring which has been returned when computing the zeros of the … … 5718 5719 // it suffices to homogenise an arbitrary system of generators 5719 5720 // II=groebner(II); 5721 homogentest=homog(II); 5720 5722 II=homog(II,maxideal(1)[nvars(PREGFANRING)+1]); 5721 5723 // if gfan version >= 0.3.0 is used and the characteristic … … 5785 5787 // which in a later version 5786 5788 // should be interpreded by Singular 5787 wneulist=choosegfanvector(read("/tmp/gfanoutput"),findall, anzahlvariablen);5789 wneulist=choosegfanvector(read("/tmp/gfanoutput"),findall,homogentest); 5788 5790 setring PREGFANRING; 5789 5791 }
Note: See TracChangeset
for help on using the changeset viewer.