Changeset d4cb43b in git for Singular/syz2.cc


Ignore:
Timestamp:
Jan 30, 2002, 3:33:07 PM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c658ed43f0faca30bee15dba7bad146606a58727
Parents:
70981176bc24302d6a91e9beb7523f2aec93937a
Message:
* hannes: icc-port (code cleanup)


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

Legend:

Unmodified
Added
Removed
  • Singular/syz2.cc

    r7098117 rd4cb43b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz2.cc,v 1.23 2001-08-27 14:47:42 Singular Exp $ */
     4/* $Id: syz2.cc,v 1.24 2002-01-30 14:33:06 Singular Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    8282  while ((l>0) && ((syzstr->resPairs[index])[l-1].lcm==NULL)) l--;
    8383  rr = l-1;
    84   while ((rr>=0) && (((syzstr->resPairs[index])[rr].p==NULL) ||
     84  while ((rr>=0) && (((syzstr->resPairs[index])[rr].p==NULL) || 
    8585        ((syzstr->resPairs[index])[rr].order>actdeg))) rr--;
    86   r2 = rr+1;
     86  r2 = rr+1; 
    8787  while ((rr>=0) && ((syzstr->resPairs[index])[rr].order==actdeg)
    8888         && ((syzstr->resPairs[index])[rr].syzind<0))
     
    117117          if (tcp!=NULL)
    118118          {
    119             while ((tcp!=NULL) &&
     119            while ((tcp!=NULL) && 
    120120              ((tcp->first_poly!=i)||(tcp->second_poly!=r1))) tcp = tcp->next;
    121121          }
     
    128128            j = 0;
    129129            while (j<i)
    130             {
     130            { 
    131131              if (nP->m[j]!=NULL)
    132132              {
     
    169169                      while ((ti<l) && (((syzstr->resPairs[index])[ti].ind1!=j)||
    170170                             ((syzstr->resPairs[index])[ti].ind2!=i))) ti++;
    171                       if (ti<l)
     171                      if (ti<l) 
    172172                      {
    173173#ifdef SHOW_SPRFL
     
    292292{
    293293  SObject tso;
     294  memset(&tso,0,sizeof(tso));
    294295  int l=(*syzstr->Tl)[index];
    295296
     
    566567  while (kk>=0)
    567568  {
    568     if (toGo==0)
     569    if (toGo==0) 
    569570    {
    570571      while (kk>=0)
     
    612613        q = kBucketGetLm(syzstr->bucket);
    613614        j = 0;
    614         while (j<kres)
     615        while (j<kres) 
    615616        {
    616           if ((redset[j].p!=NULL) && (pLmDivisibleBy(redset[j].p,q))
     617          if ((redset[j].p!=NULL) && (pLmDivisibleBy(redset[j].p,q)) 
    617618              && ((redset[j].ind1!=tso.ind1) || (redset[j].ind2!=tso.ind2)))
    618619          {
     
    756757      i = 0;
    757758      delete spl1;
    758       spl1 = ivStrip(spl2);
     759      spl1 = ivStrip(spl2); 
    759760      delete spl2;
    760761      if (spl1!=NULL)
     
    763764        kk = (*spl1)[i]-1;
    764765      }
    765     }
     766    } 
    766767#endif
    767768#ifdef USE_HEURISTIC2
     
    914915  for (i=1;i<=syzstr->length;i++)
    915916  {
    916     if (!idIs0(syzstr->orderedRes[i]))
     917    if (!idIs0(syzstr->orderedRes[i])) 
    917918    {
    918919      toreor = syzstr->orderedRes[i];
     
    927928        toreor->m[j] = NULL;
    928929      }
    929       m = 0;
     930      m = 0; 
    930931      for (j=0;j<togo;j++)
    931932      {
     
    948949
    949950/*2
    950 * the CoCoA-algorithm for free resolutions, using a formula
     951* the CoCoA-algorithm for free resolutions, using a formula 
    951952* for remaining pairs based on Hilbert-functions
    952953*/
     
    968969    return syzstr;
    969970  }
    970 
     971 
    971972  // Creare dp,S ring and change to it
    972973  syzstr->syRing = rCurrRingAssure_dp_C();
     
    10821083  kBucketDestroy(&(syzstr->bucket));
    10831084  kBucketDestroy(&(syzstr->syz_bucket));
    1084   if (origR != syzstr->syRing)
     1085  if (origR != syzstr->syRing) 
    10851086    rChangeCurrRing(origR);
    10861087  else
Note: See TracChangeset for help on using the changeset viewer.