Changeset d20633 in git for kernel/ideals.cc


Ignore:
Timestamp:
Jan 13, 2010, 4:47:04 PM (13 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
03993beb87e3cc442e9ff88e2b2f8dcdd584ec58
Parents:
af3d2ab658fbcc713db4e2f31354b07220c9c07a
Message:
quotient by poly (again)

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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    raf3d2a rd20633  
    21472147    for (i=1; i<k; i++)
    21482148    {
    2149       p = pCopy_noCheck(h4->m[i-1]);
    2150       pShift(&p,1);
    2151       h4->m[i] = p;
    2152     }
    2153   }
    2154 
     2149      if (h4->m[i-1]!=NULL)
     2150      {
     2151        p = pCopy_noCheck(h4->m[i-1]);
     2152        pShift(&p,1);
     2153        h4->m[i] = p;
     2154      }
     2155    }
     2156  }
     2157  idSkipZeroes(h4);
    21552158  kkk = IDELEMS(h4);
    21562159  i = IDELEMS(temph1);
    2157   while ((i>0) && (temph1->m[i-1]==NULL)) i--;
    21582160  for (l=0; l<i; l++)
    21592161  {
     
    21802182  if (*addOnlyOne)
    21812183  {
     2184    idSkipZeroes(h4);
    21822185    p = h4->m[0];
    21832186    for (i=0;i<IDELEMS(h4)-1;i++)
     
    21862189    }
    21872190    h4->m[IDELEMS(h4)-1] = p;
    2188     idSkipZeroes(h4);
    2189     // test |= Sy_bit(OPT_SB_1);
     2191    test |= Sy_bit(OPT_SB_1);
    21902192  }
    21912193  idDelete(&temph1);
     
    22272229    s_h4 = idrMoveR(s_h4,orig_ring);
    22282230  idTest(s_h4);
     2231  #if 0
     2232  void ipPrint_MA0(matrix m, const char *name);
     2233  matrix m=idModule2Matrix(idCopy(s_h4));
     2234  PrintS("start:\n");
     2235  ipPrint_MA0(m,"Q");
     2236  idDelete((ideal *)&m);
     2237  PrintS("last elem:");wrp(s_h4->m[IDELEMS(s_h4)-1]);PrintLn();
     2238  #endif
    22292239  ideal s_h3;
    22302240  if (addOnlyOne)
    22312241  {
    2232     s_h3 = kStd(s_h4,currQuotient,hom,&weights1,NULL,kmax-1,IDELEMS(s_h4)-1);
     2242    s_h3 = kStd(s_h4,currQuotient,hom,&weights1,NULL,0/*kmax-1*/,IDELEMS(s_h4)-1);
    22332243  }
    22342244  else
     
    22362246    s_h3 = kStd(s_h4,currQuotient,hom,&weights1,NULL,kmax-1);
    22372247  }
     2248  test = old_test;
     2249  #if 0
     2250  // only together with the above debug stuff
     2251  idSkipZeroes(s_h3);
     2252  m=idModule2Matrix(idCopy(s_h3));
     2253  Print("result, kmax=%d:\n",kmax);
     2254  ipPrint_MA0(m,"S");
     2255  idDelete((ideal *)&m);
     2256  #endif
    22382257  idTest(s_h3);
    22392258  if (weights1!=NULL) delete weights1;
     
    22632282  }
    22642283  idSkipZeroes(s_h3);
    2265   test = old_test;
    22662284  idTest(s_h3);
    22672285  return s_h3;
Note: See TracChangeset for help on using the changeset viewer.