Changeset ac6a48 in git


Ignore:
Timestamp:
Feb 2, 2024, 11:57:56 AM (3 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
50cf75971fae4a3d60736a2f37acd8ad9bc752ea
Parents:
04cc5da7e5ea83aed70148b8e57df1dc0ad7f5ca
Message:
opt: syGausForOne, syReorder
Location:
kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/syz.cc

    r04cc5d rac6a48  
    228228/*--makes Gauss alg. for the column ModComp--*/
    229229  pTakeOutComp(&(actWith), ModComp, &unit1, &lu);
    230   while (from<till)
    231   {
    232     poly tmp=syz->m[from];
    233     if (/*syz->m[from]*/ tmp!=NULL)
    234     {
    235       pTakeOutComp(&(tmp), ModComp, &unit2, &lu);
    236       tmp = pMult(pCopy(unit1),tmp);
    237       syz->m[from] = pSub(tmp,
    238         pMult(unit2,pCopy(actWith)));
    239     }
    240     from++;
     230  if (lu==1) /*p_IsConstantComp(unit1,currRing)*/
     231  {
     232    number n_unit1=pGetCoeff(unit1);
     233    while (from<till)
     234    {
     235      poly tmp=syz->m[from];
     236      if (/*syz->m[from]*/ tmp!=NULL)
     237      {
     238        pTakeOutComp(&tmp, ModComp, &unit2, &lu);
     239        tmp = p_Mult_nn(tmp,n_unit1,currRing);
     240        syz->m[from] = pSub(tmp,
     241          pMult(unit2,pCopy(actWith)));
     242      }
     243      from++;
     244    }
     245  }
     246  else
     247  {
     248    while (from<till)
     249    {
     250      poly tmp=syz->m[from];
     251      if (/*syz->m[from]*/ tmp!=NULL)
     252      {
     253        pTakeOutComp(&tmp, ModComp, &unit2, &lu);
     254        tmp = pMult(pCopy(unit1),tmp);
     255        syz->m[from] = pSub(tmp,
     256          pMult(unit2,pCopy(actWith)));
     257      }
     258      from++;
     259    }
    241260  }
    242261  pDelete(&actWith);
  • kernel/GBEngine/syz1.cc

    r04cc5d rac6a48  
    16431643{
    16441644  int i,j,l;
    1645   poly p,q,tq;
    16461645  polyset ri1;
    16471646  resolvente fullres;
     
    16621661        for (j=IDELEMS(res[i])-1;j>=0;j--)
    16631662        {
    1664           p = res[i]->m[j];
    1665           q = NULL;
     1663          sBucket_pt bucket = sBucketCreate(currRing);
     1664          poly p = res[i]->m[j];
    16661665          while (p!=NULL)
    16671666          {
     1667            poly tq;
    16681668            if (toCopy)
    16691669            {
     
    17021702            pSetm(tq);
    17031703            pTest(tq);
    1704             q = pAdd(q,tq);
    1705             pTest(q);
     1704            sBucket_Add_m(bucket,tq);
    17061705          }
    1707           fullres[i-1]->m[j] = q;
     1706          int l_dummy;
     1707          sBucketClearMerge(bucket, &(fullres[i-1]->m[j]), &l_dummy);
     1708          sBucketDestroy(&bucket);
    17081709        }
    17091710      }
  • kernel/ideals.cc

    r04cc5d rac6a48  
    28482848
    28492849extern void ipPrint_MA0(matrix m, const char *name);
     2850#if 0 // unused
    28502851ideal idMinEmbedding_with_map0(ideal arg,intvec **w, ideal &trans)
    28512852{
     
    29292930  return result;
    29302931}
     2932#endif
    29312933#include "polys/clapsing.h"
    29322934
Note: See TracChangeset for help on using the changeset viewer.