Changeset 09cb63f in git


Ignore:
Timestamp:
Oct 4, 2016, 10:51:10 PM (8 years ago)
Author:
Thomas Markwig <keilen@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d5122e12287fd5f17a9443a21ced8b72679e4b57
Parents:
50a0eb6a06430df83592ea9590c76105f926b5e5
Message:
choosegfanvector: Fehler beim Erkennen der Homogenitaet korrigiert
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/tropical.lib

    r50a0eb r09cb63f  
    47274727        // which in a later version
    47284728        // 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];
    47304730        setring PREGFANRING;
    47314731      }
     
    54505450/////////////////////////////////////////////////////////////////////////
    54515451
    5452 static proc choosegfanvector (string s,int findall,int anzahlvariablen)
    5453 "USAGE:   choosegfanvector(s); s string
     5452static proc choosegfanvector (string s,int findall,int homogentest)
     5453"USAGE:   choosegfanvector(s,fa,h); s string, fa,h int
    54545454RETURN:   list, the jth entry is the jth integer vector contained in s
    54555455NOTE:     the procedure is called from tropicalparametrise"
     
    54675467    // the last entry in ww should correspond to the homogenisation variable
    54685468    // (and can be omitted), unless the input to gfan was already homogeneous
    5469     if (anzahlvariablen==size(ww)-1)
     5469    if (homogentest==0)
    54705470    {
    54715471      ww=ww[1..size(ww)-1];
     
    54975497      {
    54985498        execute("www=intvec("+w+");");
    5499         if (anzahlvariablen==size(ww)-1)
     5499        if (homogentest==0)
    55005500        {
    55015501          ww[i]=intvec(www[1..size(www)-1]);
     
    56675667  int numberdeletedvariables;  // the number of deleted variables
    56685668  int oldanzahlvariablen=anzahlvariablen; // anzahlvariablen for later reference
     5669  int homogentest=0;
    56695670  list liftings,partliftings;  // the computed liftings (all resp. partly)
    56705671  // consider each ring which has been returned when computing the zeros of the
     
    57185719          // it suffices to homogenise an arbitrary system of generators
    57195720          // II=groebner(II);
     5721          homogentest=homog(II);
    57205722          II=homog(II,maxideal(1)[nvars(PREGFANRING)+1]);
    57215723          // if gfan version >= 0.3.0 is used and the characteristic
     
    57855787            // which in a later version
    57865788            // should be interpreded by Singular
    5787             wneulist=choosegfanvector(read("/tmp/gfanoutput"),findall,anzahlvariablen);
     5789            wneulist=choosegfanvector(read("/tmp/gfanoutput"),findall,homogentest);
    57885790            setring PREGFANRING;
    57895791          }
Note: See TracChangeset for help on using the changeset viewer.