Changeset 6188f04 in git


Ignore:
Timestamp:
Jan 14, 2014, 4:31:03 PM (10 years ago)
Author:
Janko Boehm <boehm@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
3ec6eca5156711f5fab6a2d21c403e256f154188
Parents:
bbb8fa401a826c3aa9827457718f04c4da962e1d
Message:
Integrated locnormal.lib into reesclos.lib
Location:
Singular/LIB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/locnormal.lib

    rbbb8fa4 r6188f04  
    142142  ideal J = minor(jacob(IMin), nvars(basering) - d, I);
    143143  t=timer;
    144   J = modStd(J);
    145   if (printTimings==1) {"Time for modStd Jacobian "+string(timer-t);}
     144  int ch = char(basering);
     145  if (ch==0) {J = modStd(J);} else {J = std(J);}
     146  if (printTimings==1) {"Time for modStd/std Jacobian "+string(timer-t);}
    146147
    147148  setring R;
     
    198199
    199200  t=timer;
    200   resu = modStd(resu);
    201   if (printTimings==1) {
    202      "Time for combining the local results, modStd "+string(timer-t);
     201  if (ch==0) {resu = modStd(resu);} else {resu = std(resu);}
     202  if (printTimings==1) {
     203     "Time for combining the local results, modStd/std "+string(timer-t);
    203204  }
    204205
  • Singular/LIB/reesclos.lib

    rbbb8fa4 r6188f04  
    2424";
    2525
    26 LIB "normal.lib";       // for HomJJ
     26LIB "locnormal.lib";       // for HomJJ
    2727LIB "standard.lib";     // for groebner
    2828
     
    103103
    104104static
    105 proc ClosureRees (list L)
    106 "USAGE:    ClosureRees (L); L a list
     105proc ClosureRees (list L, int useLocNormal)
     106"USAGE:    ClosureRees (L,useLocNormal); L a list, useLocNormal an integer
    107107ASSUME:   L is a list containing
    108108          - a ring L[1], inside L[1] an ideal ker such that L[1]/ker is
     
    123123  setring R(1);                   // declaration of variables used later
    124124  ideal ker(1)=ker;               // in STEP 2
    125   list nor = normal(ker);
    126   list preimages=nor[2];
     125  if (useLocNormal==1) {
     126      list preimages1 = locNormal(ker);
     127      ideal preimagesI=preimages1[1];
     128      list preimagesL = list(preimagesI[2..size(preimagesI)])+list(preimagesI[1]);
     129      ideal preimages = ideal(preimagesL[1..size(preimagesL)]);
     130  } else {
     131      list nor = normal(ker);
     132      ideal preimages=nor[2][1];
     133  }
    127134  setring Kxt;
    128135  map psi=R(1),mapI;              // from ReesAlgebra: the map Rees->Kxt
    129   ideal images=(psi(preimages))[1];
     136  ideal images=psi(preimages);
    130137  ideal psii = images[size(images)]*ideal(psi);
    131138  list imagesl = images[1..size(images)];
     
    265272
    266273proc normalI(ideal I, list #)
    267 "USAGE:    normalI (I [,p[,r]]); I an ideal, p and r optional integers
     274"USAGE:    normalI (I [,p [,r [,l]]]); I an ideal, p, r, and l optional integers
    268275RETURN:   the integral closure of I, ..., I^p, where I is an ideal in the
    269276          polynomial ring R=k[x(1),...x(n)]. If p is not given, or p==0,
     
    273280          is given and r==1, normalI starts with a check whether I is already a
    274281          radical ideal.
     282          If l==1 then locNormal instead of normal is used to compute normalization.
    275283          The result is a list containing the closure of the desired powers of
    276284          I as ideals of the basering.
     
    305313
    306314  int testrad=0;      // do the radical check?
     315  int uselocNormal=0;
    307316  if (size(#)>1)
    308317  {
    309318    testrad=#[2];
     319    if (size(#)==3) {
     320                 uselocNormal=#[3];
     321    }
    310322  }
    311323
     
    363375
    364376  setring Kxt;
    365   list images = ClosureRees(Rees);
     377  list images = ClosureRees(Rees,uselocNormal);
    366378
    367379  // ClosureRees was done after the first HomJJ-call
Note: See TracChangeset for help on using the changeset viewer.