Changeset abe5c8 in git


Ignore:
Timestamp:
Sep 24, 2012, 12:41:08 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
f224d8590b63be01aff8b548ab4f2f5dea43b095
Parents:
1592b986a21bcaba5633414189a7b08c5cce6213
Message:
chg: removed parameter last from p_*templates
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • kernel/kInline.h

    r1592b9 rabe5c8  
    599599
    600600    pNext(_p) = p_Minus_mm_Mult_qq( pNext(_p), m, q, pLength, lq,
    601                                     spNoether, last, tailRing );
     601                                    spNoether, tailRing );
    602602//    tailRing->p_Procs->p_Minus_mm_Mult_qq(pNext(_p), m, q, shorter,spNoether, tailRing, last);
    603603//    pLength += lq - shorter;
  • kernel/kspoly.cc

    r1592b9 rabe5c8  
    445445  {
    446446    l2 = -1;
    447     a2 = tailRing->p_Procs->pp_Mult_mm_Noether(a2, m2, spNoether, l2, tailRing,last);
     447    a2 = tailRing->p_Procs->pp_Mult_mm_Noether(a2, m2, spNoether, l2, tailRing);
    448448    assume(l2 == pLength(a2));
    449449  }
    450450  else
    451     a2 = tailRing->p_Procs->pp_Mult_mm(a2, m2, tailRing,last);
     451    a2 = tailRing->p_Procs->pp_Mult_mm(a2, m2, tailRing);
    452452#ifdef HAVE_RINGS
    453453  if (!(rField_is_Domain(currRing))) l2 = pLength(a2);
  • kernel/kutil.cc

    r1592b9 rabe5c8  
    17861786#endif
    17871787  // get multiplied signatures for testing
    1788   pSigMult = currRing->p_Procs->pp_Mult_mm(pSigMult,m1,currRing,last);
     1788  pSigMult = currRing->p_Procs->pp_Mult_mm(pSigMult,m1,currRing);
    17891789  pSigMultNegSev = ~p_GetShortExpVector(pSigMult,currRing);
    1790   sSigMult = currRing->p_Procs->pp_Mult_mm(sSigMult,m2,currRing,last);
     1790  sSigMult = currRing->p_Procs->pp_Mult_mm(sSigMult,m2,currRing);
    17911791  sSigMultNegSev = ~p_GetShortExpVector(sSigMult,currRing);
    17921792 
     
    60216021          p_SetCompP (q, p_GetComp(strat->sig[k], currRing), currRing);
    60226022          strat->syz[ctr] = p_Add_q (strat->syz[ctr], q, currRing);
    6023 #ifdef DEBUGF5 || DEBUGF51
     6023#if defined(DEBUGF5) || defined(DEBUGF51)
    60246024          pWrite(strat->syz[ctr]);
    60256025#endif
  • libpolys/polys/kbuckets.cc

    r1592b9 rabe5c8  
    699699  int i, l1;
    700700  poly p1 = p;
    701   poly last;
    702701  ring r = bucket->bucket_ring;
    703702
     
    753752    {
    754753      l1 = -1;
    755       p1 = r->p_Procs->pp_Mult_mm_Noether(p1, m, spNoether, l1, r, last);
     754      p1 = r->p_Procs->pp_Mult_mm_Noether(p1, m, spNoether, l1, r);
    756755      i = pLogLength(l1);
    757756    }
    758     else {
    759       p1 = r->p_Procs->pp_Mult_mm(p1, m, r, last);
     757    else
     758    {
     759      p1 = r->p_Procs->pp_Mult_mm(p1, m, r);
    760760#ifdef HAVE_RINGS
    761761      if (rField_is_Ring(r) && !(rField_is_Domain(r)))
     
    804804  int i, l1;
    805805  poly p1 = p;
    806   poly last;
    807806  ring r = bucket->bucket_ring;
    808807
     
    892891    //p_GetCoeff0(n, swap_n,r);
    893892    #endif
    894     p1 = r->p_Procs->pp_Mult_mm(p1, m, r, last);
     893    p1 = r->p_Procs->pp_Mult_mm(p1, m, r);
    895894    #ifdef USE_COEF_BUCKETS
    896895    //m may not be changed
  • libpolys/polys/monomials/p_polys.h

    r1592b9 rabe5c8  
    950950  else
    951951  {
    952     poly last;
    953     return r->p_Procs->pp_Mult_mm(p, m, r, last);
     952    return r->p_Procs->pp_Mult_mm(p, m, r);
    954953  }
    955954}
     
    964963}
    965964
    966 // like p_Minus_mm_Mult_qq, except that if lp == pLength(lp) lq == pLength(lq)
    967 // then result = p-m*q, lp == pLength(result), last == pLast(result)
    968 static inline poly p_Minus_mm_Mult_qq(poly p, const poly m, const poly q, int &lp, int lq,
    969                                  const poly spNoether, poly& last, const ring r)
    970 {
    971   int l;
    972 #ifdef HAVE_PLURAL
    973   if (rIsPluralRing(r))
    974   {
    975     p = nc_p_Minus_mm_Mult_qq(p, m, q, lp, lq, spNoether, r);
    976     last = p_Last(p, l, r);
    977     assume( lp == l );
    978     assume( lp == pLength(p) );
    979     return p;
    980   }
    981 #endif
    982 
    983   int shorter;
    984   const poly res = r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, spNoether, r, last);
    985   lp = (lp + lq) - shorter;
    986   assume( last == p_Last(res, l, r) );
    987   assume( lp == l );
    988   assume( lp == pLength(res) );
    989   return res;
    990 }
    991 
    992 
    993 // like p_Minus_mm_Mult_qq (above) but without last
    994965static inline poly p_Minus_mm_Mult_qq(poly p, const poly m, const poly q, int &lp, int lq,
    995966                                      const poly spNoether, const ring r)
     
    1004975#endif
    1005976
    1006   int shorter; poly last;
    1007   const poly res = r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, spNoether, r, last);
     977  int shorter;
     978  const poly res = r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, spNoether, r);
    1008979  lp += lq - shorter;
    1009980  assume( lp == pLength(res) );
     
    1023994
    1024995  int shorter;
    1025   poly last;
    1026 
    1027   return r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, NULL, r, last); // !!!
     996
     997  return r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, NULL, r);
    1028998}
    1029999
     
    11061076static inline poly pp_Mult_qq(poly p, poly q, const ring r)
    11071077{
    1108   poly last;
    11091078  if (p == NULL || q == NULL) return NULL;
    11101079
     
    11151084      return nc_mm_Mult_pp(p, q, r);
    11161085#endif
    1117     return r->p_Procs->pp_Mult_mm(q, p, r, last);
     1086    return r->p_Procs->pp_Mult_mm(q, p, r);
    11181087  }
    11191088
    11201089  if (pNext(q) == NULL)
    11211090  {
    1122     return r->p_Procs->pp_Mult_mm(p, q, r, last);
     1091    return r->p_Procs->pp_Mult_mm(p, q, r);
    11231092  }
    11241093
     
    11501119
    11511120// this should be implemented more efficiently
    1152   poly res, last;
     1121  poly res;
    11531122  int shorter;
    11541123  number n_old = pGetCoeff(m);
     
    11561125  n_neg = n_Neg(n_neg, r->cf);
    11571126  pSetCoeff0(m, n_neg);
    1158   res = r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, NULL, r, last);
     1127  res = r->p_Procs->p_Minus_mm_Mult_qq(p, m, q, shorter, NULL, r);
    11591128  lp = (lp + lq) - shorter;
    11601129  pSetCoeff0(m, n_old);
  • libpolys/polys/nc/ncSAMult.cc

    r1592b9 rabe5c8  
    5151
    5252// poly functions defined in p_Procs: ;
    53 static poly ggnc_pp_Mult_mm(const poly p, const poly m, const ring r, poly& last)
     53static poly ggnc_pp_Mult_mm(const poly p, const poly m, const ring r)
    5454{
    5555  if( (p == NULL) || (m == NULL) )
  • libpolys/polys/nc/old.gring.cc

    r1592b9 rabe5c8  
    434434
    435435/* poly functions defined in p_Procs : */
    436 poly gnc_pp_Mult_mm(const poly p, const poly m, const ring r, poly &last)
     436poly gnc_pp_Mult_mm(const poly p, const poly m, const ring r)
    437437{
    438438  return( gnc_p_Mult_mm_Common(p_Copy(p,r), m, 1, r) );
  • libpolys/polys/nc/sca.cc

    r1592b9 rabe5c8  
    464464
    465465// return new poly = pPoly * pMonom; preserve pPoly and pMonom.
    466 poly sca_pp_Mult_mm(const poly pPoly, const poly pMonom, const ring rRing, poly &)
     466poly sca_pp_Mult_mm(const poly pPoly, const poly pMonom, const ring rRing)
    467467{
    468468  assume( rIsSCA(rRing) );
  • libpolys/polys/templates/p_Minus_mm_Mult_qq__T.cc

    r1592b9 rabe5c8  
    1717 *
    1818 ***************************************************************/
    19 LINKAGE poly p_Minus_mm_Mult_qq__T(poly p, poly m, poly q, int& Shorter, const poly spNoether, const ring r, poly &last)
     19LINKAGE poly p_Minus_mm_Mult_qq__T(poly p, poly m, poly q, int& Shorter, const poly spNoether, const ring r)
    2020{
    2121  p_Test(p, r);
     
    134134  {
    135135    pNext(a) = p;
    136     if (p == NULL) last = a;
    137136  }
    138137  else  // append (- m*q) to result
    139138  {
    140139    pSetCoeff0(m, tneg);
    141     last = a;
    142140    if (spNoether != NULL)
    143141    {
    144142      int ll = 0;
    145       pNext(a) = r->p_Procs->pp_Mult_mm_Noether(q, m, spNoether, ll, r, last);
     143      pNext(a) = r->p_Procs->pp_Mult_mm_Noether(q, m, spNoether, ll, r);
    146144      shorter += ll;
    147145    }
    148146    else
    149147    {
    150       pNext(a) = r->p_Procs->pp_Mult_mm(q, m, r, last);
     148      pNext(a) = r->p_Procs->pp_Mult_mm(q, m, r);
    151149#ifdef HAVE_RINGS
    152150      if (! rField_is_Domain(r))
  • libpolys/polys/templates/p_Procs.h

    r1592b9 rabe5c8  
    2222typedef poly (*p_Mult_mm_Proc_Ptr)(poly p, const poly m, const ring r);
    2323typedef poly (*pp_Mult_mm_Proc_Ptr)(poly p, const poly m,
    24                                     const ring r,
    25                                     poly &last);
     24                                    const ring r);
    2625typedef poly (*pp_Mult_mm_Noether_Proc_Ptr)(poly p, const poly m,
    2726                                            const poly spNoether, int &ll,
    28                                             const ring r, poly &last);
     27                                            const ring r);
    2928typedef poly (*p_Add_q_Proc_Ptr)(poly p, poly q, int & shorter, const ring r);
    3029typedef poly (*p_Minus_mm_Mult_qq_Proc_Ptr)(poly p, poly m, poly q,
    3130                                            int &shorter, const poly spNoether,
    32                                             const ring r, poly &last);
     31                                            const ring r);
    3332typedef poly (*p_Neg_Proc_Ptr)(poly p, const ring r);
    3433typedef poly (*pp_Mult_Coeff_mm_DivSelect_Proc_Ptr)(poly p, const poly m,
  • libpolys/polys/templates/pp_Mult_mm_Noether__T.cc

    r1592b9 rabe5c8  
    1717 *
    1818 ***************************************************************/
    19 LINKAGE poly pp_Mult_mm_Noether__T(poly p, const poly m, const poly spNoether, int &ll, const ring ri, poly &last)
     19LINKAGE poly pp_Mult_mm_Noether__T(poly p, const poly m, const poly spNoether, int &ll, const ring ri)
    2020{
    2121  p_Test(p, ri);
     
    2525  {
    2626    ll = 0;
    27     last = NULL;
    2827    return NULL;
    2928  }
     
    6463    ll = pLength(p);
    6564
    66   if (q != &rp)
    67     last = q;
    6865  pNext(q) = NULL;
    6966
Note: See TracChangeset for help on using the changeset viewer.