Changeset bead81 in git


Ignore:
Timestamp:
Apr 20, 2010, 6:11:58 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c11951e6cc1b26a68bd26f0429981f14de14a185
Parents:
0ddbd9dc2626d64cdc92707919db795de0211cab
Message:
track 225: exceptional cases and rank stuff in idLift

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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r0ddbd9 rbead81  
    7474{
    7575  assume( debugPrint >= 0 );
    76  
     76
    7777  if( id == NULL )
    7878    PrintS("(NULL)");
     
    13801380  }
    13811381  h2->rank = syzcomp+i+1;
    1382  
     1382
    13831383  //if (hom==testHomog)
    13841384  //{
     
    17251725          (*syz)->m[j]=s_h3->m[j];
    17261726          s_h3->m[j]=NULL;
    1727         } 
     1727        }
    17281728        else
    17291729          pDelete(&(s_h3->m[j]));
     
    18461846    return idInit(1,mod->rank);
    18471847  }
    1848   if (idIs0(mod))
    1849   {
     1848  if (idIs0(mod)) /* and not idIs0(submod) */
     1849  {
     1850    WerrorS("2nd module does not lie in the first");
     1851    #if 0
    18501852    if (unit!=NULL)
    18511853    {
     
    18621864    }
    18631865    return idInit(1,mod->rank);
     1866    #endif
     1867    return idInit(IDELEMS(submod),submod->rank);
    18641868  }
    18651869  if (unit!=NULL)
     
    18691873      comps_to_add--;
    18701874  }
    1871   k=idRankFreeModule(mod);
     1875  k=si_max(idRankFreeModule(mod),idRankFreeModule(submod));
    18721876  if  ((k!=0) && (lsmod==0)) lsmod=1;
    18731877  k=si_max(k,(int)mod->rank);
     1878  if (k<submod->rank) { WarnS("rk(submod) > rk(mod) ?");k=submod->rank; }
    18741879
    18751880  ring orig_ring=currRing;
     
    31433148  if (pLexOrder && (currRing->order[0]==ringorder_lp))
    31443149     d=pTotaldegree;
    3145   else 
     3150  else
    31463151     d=pFDeg;
    31473152  int length=IDELEMS(m);
Note: See TracChangeset for help on using the changeset viewer.