Changeset aa7c1c2 in git for Singular/iparith.cc


Ignore:
Timestamp:
Jun 14, 2018, 1:08:24 PM (6 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8c73fdea988c87d699605750b3180fa69edf5d10
Parents:
a718906498691a0860e186cfee5db4fc1142ccd6db48f3ea705fcb451c2ea640a2b72f643bae2f22
Message:
Merge branch 'spielwiese' into letterplace_kernel_multiplication
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    ra718906 raa7c1c2  
    14691469static BOOLEAN jjINDEX_V(leftv res, leftv u, leftv v)
    14701470{
    1471   poly p=(poly)u->CopyD(VECTOR_CMD);
    1472   poly r=p; // pointer to the beginning of component i
    1473   poly o=NULL;
     1471  poly p=(poly)u->Data();
    14741472  int i=(int)(long)v->Data();
    1475   while (p!=NULL)
    1476   {
    1477     if (pGetComp(p)!=i)
    1478     {
    1479       if (r==p) r=pNext(p);
    1480       if (o!=NULL)
    1481       {
    1482         if (pNext(o)!=NULL) pLmDelete(&pNext(o));
    1483         p=pNext(o);
    1484       }
    1485       else
    1486         pLmDelete(&p);
    1487     }
    1488     else
    1489     {
    1490       pSetComp(p, 0);
    1491       p_SetmComp(p, currRing);
    1492       o=p;
    1493       p=pNext(o);
    1494     }
    1495   }
    1496   res->data=(char *)r;
     1473  res->data=(char *)p_Vec2Poly(p,i,currRing);
    14971474  return FALSE;
    14981475}
     
    62676244  }
    62686245  return FALSE;
     6246}
     6247static BOOLEAN jjSUBST_Bu(leftv res, leftv u, leftv v,leftv w)
     6248{
     6249  // generic conversion from polyBucket to poly:
     6250  // force this to be the first try everytime
     6251  poly p; int l;
     6252  sBucket_pt bu=(sBucket_pt)w->CopyD();
     6253  sBucketDestroyAdd(bu,&p,&l);
     6254  sleftv tmpw;
     6255  tmpw.Init();
     6256  tmpw.rtyp=POLY_CMD;
     6257  tmpw.data=p;
     6258  return iiExprArith3(res, iiOp, u, v, &tmpw);
    62696259}
    62706260static BOOLEAN jjSUBST_P(leftv res, leftv u, leftv v,leftv w)
Note: See TracChangeset for help on using the changeset viewer.