Changeset 52a01d in git for Singular/LIB/normal.lib


Ignore:
Timestamp:
Jan 28, 2015, 11:25:49 AM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
6bd53ba88f906b9abf68e6983aac4cf495d7631c
Parents:
d8f9c942ee4bfbe1e3f486950f095b373d881a281386125efea2b96cc1b1eb9c36caa5004c0f47f6
Message:
Merge pull request #689 from surface-smoothers/fix.libcddgmp.check

use g++ instead of gcc for libcddgmp check (for ubuntu)
was somehow lost...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/normal.lib

    r138612 r52a01d  
    22862286   if(size(N) < nvars(R0))
    22872287   {
    2288      string newvar=string(N);
    2289      execute("ring R=("+charstr(R0)+"),("+newvar+"),dp;");
     2288     list newvar=N[1..ncols(N)];
     2289     list @rl0=ringlist(R0);
     2290     @rl0[2]=list(N[1..ncols(N)]);
     2291     @rl0[3]=list(list("dp",1:ncols(N)),list("C",0));
     2292     def R=ring(@rl0); kill @rl0;
     2293     setring R;
    22902294     ideal I =imap(R0,I);
    2291      if((ringlist(R0)[3][1][1]=="dp")&&(size(ringlist(R0)[3])==2))
     2295     list @rl0=ringlist(R0);
     2296     if((@rl0[3][1][1]=="dp")&&(size(@rl0[3])==2))
    22922297     {
    22932298       attrib(I,"isSB",1);
     
    22972302       I=std(I);
    22982303     }
     2304     kill @rl0;
    22992305   }
    23002306   else
     
    23072313   if(dim(I)==2)
    23082314   {
    2309       def newR=basering;
     2315     def newR=basering;
    23102316   }
    23112317   else
    23122318   {
    2313       short=0;
    2314       string smp = string(minpoly);
    2315       if(dim(I)==0)
    2316       {
    2317          execute("ring Rhelp=("+charstr(R0)+"),(@s,@t),dp;");
    2318       }
    2319       else
    2320       {
    2321          execute("ring Rhelp=("+charstr(R0)+"),(@s),dp;");
    2322       }
    2323       if (smp!="0")
    2324       { execute("minpoly = "+smp+";");}
    2325       def newR=R+Rhelp;
    2326       setring newR;
    2327       ideal I=imap(R,I);
    2328       I=homog(I,@s);
    2329       attrib(I,"isSB",1);
     2319     list @rl0=ringlist(R0);
     2320     if(dim(I)==0)
     2321     {
     2322       @rl0[2]=list("@s","@t");
     2323       @rl0[3]=list(list("dp",1:2),list("C",0));
     2324     }
     2325     else
     2326     {
     2327       @rl0[2]=list("@s");
     2328       @rl0[3]=list(list("dp",1),list("C",0));
     2329     }
     2330     def Rhelp=ring(@rl0);
     2331     kill @rl0;
     2332     def newR=R+Rhelp;
     2333     setring newR;
     2334     ideal I=imap(R,I);
     2335     I=homog(I,@s);
     2336     attrib(I,"isSB",1);
    23302337   }
    23312338
    23322339   if((nvars(basering)<=3)&&(size(I)>1))
    23332340   {
    2334        ERROR("This is not equidimensional");
     2341     ERROR("This is not equidimensional");
    23352342   }
    23362343
     
    26522659   option(redSB);
    26532660   def R=basering;
    2654    execute("ring S=("+charstr(R)+"),(x,y),lp;");
     2661   list @rl=ringlist(R);
     2662   @rl[2]=list("x","y");
     2663   @rl[3]=list(list("lp",1:2),list("C",0));
     2664   def S=ring(@rl); setring S;
    26552665   map phi=R,x,y;
    26562666   ideal singL=phi(singL);
     
    26652675      map alpha=S,var(1)-singL[2][2],var(2)-singL[1][2];
    26662676      f=alpha(f);
    2667       execute("ring C=("+charstr(S)+"),("+varstr(S)+"),ds;");
     2677      def C=changeordTo(S,"ds"); setring C;
    26682678      poly f=imap(S,f);
    26692679      ideal singL=imap(S,singL);
     
    27122722      poly p=beta(p);
    27132723
    2714       execute("ring C=("+charstr(S)+",a),("+varstr(S)+"),ds;");
     2724      execute("ring C=("+charstr(S)+",a),(x,y),ds;");
    27152725      number p=number(imap(B,p));
    27162726
Note: See TracChangeset for help on using the changeset viewer.