Changeset b8f199 in git for kernel/ideals.cc


Ignore:
Timestamp:
Mar 16, 2011, 4:42:56 PM (12 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
fddf1c0b111391917a4d5965b7ddf45adb7c05d6
Parents:
ac434faa72fa3537bfa0e82a2b6492249ea618d8
Message:
deny qring with constant generator / disable hilb/degree/std_hilb / cleanup prune

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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    rac434f rb8f199  
    12011201  if (w!=NULL) delete w;
    12021202  idDelete(&temp);
    1203 
    12041203  if(syz_ring!=orig_ring)
    12051204    rChangeCurrRing(orig_ring);
     
    38393838
    38403839/*3
    3841 * searches for units in the components of the module arg and
    3842 * returns the first one
    3843 */
    3844 static int idReadOutUnits(ideal arg,int* comp)
     3840* searches for the next unit in the components of the module arg and
     3841* returns the first one;
     3842*/
     3843static int idReadOutPivot(ideal arg,int* comp)
    38453844{
    38463845  if (idIs0(arg)) return -1;
     
    38593858      if (componentIsUsed[j]==0)
    38603859      {
     3860#ifdef HAVE_RINGS
     3861        if (pLmIsConstantComp(p) && rField_is_Ring(currRing) &&
     3862            nIsUnit(pGetCoeff(p)))
     3863        {
     3864#else
    38613865        if (pLmIsConstantComp(p))
    38623866        {
     3867#endif
    38633868          generator = i;
    38643869          componentIsUsed[j] = 1;
     
    39503955  int i,next_gen,next_comp;
    39513956  ideal res=arg;
    3952 
    39533957  if (!inPlace) res = idCopy(arg);
    39543958  res->rank=si_max(res->rank,idRankFreeModule(res));
     
    39593963  loop
    39603964  {
    3961     next_gen = idReadOutUnits(res,&next_comp);
     3965    next_gen = idReadOutPivot(res,&next_comp);
    39623966    if (next_gen<0) break;
    39633967    del++;
Note: See TracChangeset for help on using the changeset viewer.