Changeset 750e70 in git for kernel/syz1.cc


Ignore:
Timestamp:
May 5, 2011, 7:20:56 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
eb72ba1a1a50ca741a3113bf9b8bc34d414a678a
Parents:
1f9a84fc8a205c643ce861d9e20c25dc687aa193
Message:
ADD: new option(notSyzMinim) should switch off all resolution minimizations (lres/nres/mres)

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

git-svn-id: file:///usr/local/Singular/svn/trunk@14204 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/syz1.cc

    r1f9a84 r750e70  
    16421642      if(syzstr->syRing->typ[1].ord_typ == ro_syzcomp)
    16431643        rNChangeSComps(NULL, NULL, syzstr->syRing);
    1644      
     1644
    16451645      rKill(syzstr->syRing);
    16461646    }
     
    17971797  resolvente minres = syzstr->minres;
    17981798  const int length = syzstr->length;
    1799  
     1799
    18001800  if ((fullres==NULL) && (minres==NULL))
    18011801  {
    18021802     if (syzstr->hilb_coeffs==NULL)
    1803      {
     1803     { // LA SCALA
    18041804        fullres = syReorder(syzstr->res, length, syzstr);
    18051805     }
    18061806     else
    1807      {
     1807     { //  HRES
    18081808        minres = syReorder(syzstr->orderedRes, length, syzstr);
    18091809        syKillEmptyEntres(minres, length);
    18101810     }
    18111811  }
    1812  
     1812
    18131813  intvec *result=NULL;
    1814  
     1814
    18151815  if (fullres!=NULL)
    18161816    result = syBetti(fullres,length,&dummy,weights,minim,row_shift);
     
    18331833    syzstr->betti = ivCopy(result); // cache the result...
    18341834  }
    1835  
     1835
    18361836  return result;
    18371837}
     
    19571957
    19581958  intvec* resolution = syzstr->resolution;
    1959  
     1959
    19601960  if (resolution==NULL)
    19611961  {
     
    20432043  }
    20442044
    2045   if (syzstr->resolution == NULL) syzstr->resolution = resolution; 
     2045  if (syzstr->resolution == NULL) syzstr->resolution = resolution;
    20462046}
    20472047
     
    24112411      if (syzstr->hilb_coeffs==NULL)
    24122412      {
     2413        // La Scala Resolution
    24132414        syzstr->minres = syReadOutMinimalRes(syzstr);
    24142415      }
    24152416      else
    2416       {
     2417      { // HRES
    24172418        syzstr->minres = syReorder(syzstr->orderedRes,syzstr->length,syzstr);
    24182419      }
     
    25382539  if (temp!=NULL) idDelete(&temp);
    25392540  kBucketDestroy(&(syzstr->bucket));
     2541
    25402542  if (origR != syzstr->syRing)
    25412543    rChangeCurrRing(origR);
     
    25442546  if (TEST_OPT_PROT) PrintLn();
    25452547
    2546   if (syzstr->minres==NULL)
    2547       if (syzstr->resPairs!=NULL)
    2548         if (syzstr->hilb_coeffs==NULL)
    2549           syzstr->minres = syReadOutMinimalRes(syzstr);
    2550  
     2548  assume(syzstr->minres==NULL); assume(syzstr->fullres ==NULL);
     2549  assume(syzstr->resPairs!=NULL);  assume(syzstr->hilb_coeffs==NULL);
     2550  assume(syzstr->res!=NULL);
     2551
     2552  if(! TEST_OPT_NO_SYZ_MINIM )
     2553    syzstr->minres = syReadOutMinimalRes(syzstr);
     2554  else
     2555    syzstr->fullres = syReorder(syzstr->res, syzstr->length, syzstr); // buggy? (betti...?)
     2556
    25512557  return syzstr;
    25522558}
     
    25702576  ring origR = currRing;
    25712577
    2572   if(weights!= NULL) 
     2578  if(weights!= NULL)
    25732579    syzstr->cw = new intvec(weights);
    25742580  else
     
    25882594  //euler = -1;
    25892595  redpol = pInit();
    2590  
     2596
    25912597  if( maxlength > 0 )
    25922598    syzstr->length = maxlength; //  = pVariables+2;
    25932599  else
    2594     syzstr->length = maxlength = pVariables+2; 
     2600    syzstr->length = maxlength = pVariables+2;
    25952601
    25962602  // Creare dp,S ring and change to it
    25972603  syzstr->syRing = rCurrRingAssure_dp_S();
    25982604  assume(syzstr->syRing != origR);
    2599   assume(syzstr->syRing->typ[1].ord_typ == ro_syzcomp); 
     2605  assume(syzstr->syRing->typ[1].ord_typ == ro_syzcomp);
    26002606
    26012607
     
    26272633  omFreeSize((ADDRESS)currcomponents,(arg->rank+1)*sizeof(int));
    26282634  omFreeSize((ADDRESS)currShiftedComponents,(arg->rank+1)*sizeof(long));
    2629  
     2635
    26302636  syzstr->res = (resolvente)omAlloc0((maxlength+1)*sizeof(ideal));
    26312637  syzstr->orderedRes = (resolvente)omAlloc0((maxlength+1)*sizeof(ideal));
     
    26412647
    26422648  assume( syzstr->length == maxlength );
    2643  
     2649
    26442650  syzstr->bucket = kBucketCreate();
    26452651  int len0=idRankFreeModule(temp)+1;
Note: See TracChangeset for help on using the changeset viewer.