Changeset bc55ff in git


Ignore:
Timestamp:
Nov 25, 2015, 9:32:39 AM (8 years ago)
Author:
Stephan Oberfranz <oberfran@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
9276009fd8f4c23b5ebab4a73a6f387cf0688943
Parents:
c448cd0bc7b9b6f619a671e1e5605d3671864988
Message:
fix bug
Location:
Singular
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/grwalk.lib

    rc448cd rbc55ff  
    368368   string ord_str =   OSCTW[2];
    369369   intvec curr_weight   =   OSCTW[3]; /* original weight vector */
    370    intvec target_weight =   OSCTW[4]; /* terget weight vector */
     370   intvec target_weight =   OSCTW[4]; /* target weight vector */
    371371   kill OSCTW;
    372372   option(redSB);
  • Singular/LIB/modwalk.lib

    rc448cd rbc55ff  
    386386    /* compute command(args) */
    387387    exstr = "Ip = "+command+" (Ip";
    388     exstr;
     388
    389389    for(i=2; i<=size(Arg); i++) {
    390390      exstr = exstr+",Arg["+string(eval(i))+"]";
    391391      }
    392392    exstr = exstr+");";
    393     exstr;
     393
    394394    execute(exstr);
    395     /*
    396     if(size(Arg)==1) {
    397       execute("Ip = "+command+"(Ip);");
    398       }
    399     if(size(Arg)==2) {
    400          execute("Ip = "+command+"(Ip,Arg[2]);");
    401       }
    402     if(size(Arg)==3) {
    403         execute("Ip = "+command+"(Ip,Arg[2],Arg[3]);");
    404      }
    405 */
    406395
    407396    /* test if Gp is in Ip */
  • Singular/LIB/rwalk.lib

    rc448cd rbc55ff  
    219219//--------------------  Initialize parameters  ------------------------
    220220list OSCTW = OrderStringalp_NP("al", #);
    221 if(size(#)>1)
    222   {
    223   if(size(#[2]) == n*n)
    224     {
    225     OSCTW= OrderStringalp_NP("M", #);
    226     }
    227   }
    228 else
    229   {
    230   OSCTW= OrderStringalp_NP("al", #);
    231   }
    232221int nP = OSCTW[1];
    233222string ord_str = OSCTW[2];
     
    274263         frwalk(ideal i, int radius, intvec v, intvec w);
    275264TYPE:    ideal
    276 PURPOSE: compute the standard basis of the ideal, calculated via
    277          the Random Fractal walk algorithm  from the ordering
    278          \"(a(v),lp)\", \"dp\", \"Dp\" or \"M\"
    279          to the ordering  \"(a(w),lp)\", \"(a(1,0,...,0),lp)\" or \"M\".
     265PURPOSE: compute the standard basis of the ideal w.r.t. the
     266         lexicographical ordering or a weighted-lex ordering,
     267         calculated via the Random Fractal walk algorithm.
    280268SEE ALSO: std, stdfglm, groebner, gwalk, pwalk, twalk, awalk1, awalk2
    281269KEYWORDS: The fractal walk algorithm
     
    284272   // we use ring with ordering (a(...),lp,C)
    285273   list OSCTW    = OrderStringalp_NP("al", #);
    286    int n=nvars(basering);
    287    if(size(#)>1)
    288    {
    289      if(size(#[2]) == n*n)
    290      {
    291        OSCTW= OrderStringalp_NP("M", #);
    292      }
    293    }
    294   else
    295   {
    296     OSCTW= OrderStringalp_NP("al", #);
    297   }
    298274   string ord_str =   OSCTW[2];
    299275   intvec curr_weight   =   OSCTW[3]; /* current weight vector */
  • Singular/walk.cc

    rc448cd rbc55ff  
    66786678
    66796679    if(target_M->length() == nV)
    6680     {
     6680    {/*
    66816681      // define a new ring with ordering "(a(curr_weight),lp)
    66826682      if (rParameter(currRing) != NULL)
     
    66846684      else
    66856685        rChangeCurrRing(VMrDefault(curr_weight));
     6686*/
     6687      rChangeCurrRing(VMrRefine(target_M,curr_weight));
    66866688    }
    66876689    else
     
    70337035  //intvec* altomega = new intvec(nV);
    70347036
    7035   for(i = nV -1; i=0; i--)//Aenderung!!
     7037  for(i = nV -1; i>=0; i--)//Aenderung!!
    70367038  {
    70377039    (*omtmp)[i] = (*ivtarget)[i];
     
    75347536  //BOOLEAN isnewtarget = FALSE;
    75357537
    7536   for(i = nV -1; i=0; i--)
     7538  for(i = nV -1; i>=0; i--)
    75377539  {
    75387540    (*omtmp)[i] = (*ivtarget)[i];
     
    82298231
    82308232  J = rec_fractal_call(J,1,ivtarget,reduction,printout);
    8231   idString(J,"//** Mfwalk: J");
     8233  //idString(J,"//** Mfwalk: J");
    82328234  rChangeCurrRing(oldRing);
    8233   Print("\n//Mfwalk: (2)\n");
     8235  //Print("\n//Mfwalk: (2)\n");
    82348236  resF = idrMoveR(J, helpRing,currRing);
    8235   Print("\n//Mfwalk: (3)\n");
     8237  //Print("\n//Mfwalk: (3)\n");
    82368238  idSkipZeroes(resF);
    8237   Print("\n//Mfwalk: (4)\n");
     8239  //Print("\n//Mfwalk: (4)\n");
    82388240
    82398241  si_opt_1 = save1; //set original options, e. g. option(RedSB)
    82408242  delete Xivlp;
    8241   delete Xsigma;
     8243  //delete Xsigma;
    82428244  delete Xtau;
    82438245  delete XivNull;
    8244 Print("\n//Mfwalk: (5)\n");
     8246  //Print("\n//Mfwalk: (5)\n");
    82458247#ifdef TIME_TEST
    82468248  TimeStringFractal(xftinput, xftostd, xtif, xtstd, xtextra,
     
    82528254  Print("\n// the numbers of Overflow_Error (%d)", nnflow);
    82538255#endif
    8254 Print("\n//Mfwalk: (6)\n");
    8255   idString(resF,"//** Mfwalk: resF");
     8256  //Print("\n//Mfwalk: (6)\n");
     8257  //idString(resF,"//** Mfwalk: resF");
    82568258  return(idCopy(resF));
    82578259}
     
    84168418
    84178419  J = rec_r_fractal_call(J,1,ivtarget,weight_rad,reduction,printout);
    8418 idString(J,"//*** Mfrwalk: J");
    8419 Print("\n//** Mfrwalk hier (1)\n");
     8420  //idString(J,"//*** Mfrwalk: J");
     8421  //Print("\n//** Mfrwalk hier (1)\n");
    84208422  rChangeCurrRing(oldRing);
    8421 Print("\n//** Mfrwalk hier (2)\n");
     8423  //Print("\n//** Mfrwalk hier (2)\n");
    84228424  resF = idrMoveR(J, helpRing,currRing);
    8423 Print("\n//** Mfrwalk hier (3)\n");
     8425  //Print("\n//** Mfrwalk hier (3)\n");
    84248426  //idSkipZeroes(resF);
    8425 Print("\n//** Mfrwalk hier (4)\n");
     8427  //Print("\n//** Mfrwalk hier (4)\n");
    84268428  si_opt_1 = save1; //set original options, e. g. option(RedSB)
    84278429  delete Xivlp;
    8428   delete Xsigma;
     8430  //delete Xsigma;
    84298431  delete Xtau;
    84308432  delete XivNull;
    8431 Print("\n//** Mfrwalk hier (5)\n");
     8433  //Print("\n//** Mfrwalk hier (5)\n");
    84328434#ifdef TIME_TEST
    84338435  TimeStringFractal(xftinput, xftostd, xtif, xtstd, xtextra,
     
    84398441  Print("\n// the numbers of Overflow_Error (%d)", nnflow);
    84408442#endif
    8441 Print("\n//** Mfrwalk hier (6)\n");
    8442 idString(resF,"resF");
    8443 Print("\n//** Mfrwalk hier (7)\n");
     8443  //Print("\n//** Mfrwalk hier (6)\n");
     8444  //idString(resF,"resF");
     8445  //Print("\n//** Mfrwalk hier (7)\n");
    84448446  return(resF);
    84458447}
Note: See TracChangeset for help on using the changeset viewer.