Changeset 983edd in git for libpolys


Ignore:
Timestamp:
Sep 12, 2022, 11:24:25 AM (20 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a9fe62d682a9673bb4e5b18f9e403a6fada08de3
Parents:
757d250da5f3f1d534605848fadebae533e3d8e3
Message:
chg: CoeffTerm for <vector>,<module>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/pCoeff.cc

    r757d25 r983edd  
    114114{
    115115  poly res=NULL;
     116  int to_shift=0;
    116117  for(int i=0;i<IDELEMS(m);i++)
    117118  {
     
    120121    if (i>0)
    121122    {
    122       p_Shift(&tmp,m->rank,r); // m->rank >= p_MaxComp(m->m[i-1],r)
     123      to_shift+=p_MaxComp(m->m[i-1],r);
     124      p_Shift(&tmp,to_shift,r);
    123125      res=p_Add_q(res,tmp,r);
    124126    }
Note: See TracChangeset for help on using the changeset viewer.