Changeset 730552d in git


Ignore:
Timestamp:
Jan 30, 2020, 9:33:25 AM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
578c244e61e993d1e00b722610ebfd792e88078e
Parents:
b5956dddb610d9317f5d3bd0f445cf503593dc03
Message:
add p_getExpVlV/p_SetExpVLV
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.h

    rb5956d r730552d  
    14721472      ev[j-1] = p_GetExp(p, j, r);
    14731473}
     1474// p_GetExpVLV is used in Singular,jl
     1475static inline int64 p_GetExpVLV(poly p, int64 *ev, const ring r)
     1476{
     1477  p_LmCheckPolyRing1(p, r);
     1478  for (unsigned j = r->N; j!=0; j--)
     1479      ev[j-1] = p_GetExp(p, j, r);
     1480  return (int64)p_GetComp(p,r);
     1481}
     1482// p_GetExpVL is used in Singular,jl
    14741483static inline void p_SetExpV(poly p, int *ev, const ring r)
    14751484{
     
    14811490  p_Setm(p, r);
    14821491}
    1483 // p_SetExpVL is used in Singular,jl
    14841492static inline void p_SetExpVL(poly p, int64 *ev, const ring r)
    14851493{
     
    14881496      p_SetExp(p, j, ev[j-1], r);
    14891497  p_SetComp(p, 0,r);
     1498
     1499  p_Setm(p, r);
     1500}
     1501
     1502// p_SetExpVLV is used in Singular,jl
     1503static inline void p_SetExpVLV(poly p, int64 *ev, int64 comp, const ring r)
     1504{
     1505  p_LmCheckPolyRing1(p, r);
     1506  for (unsigned j = r->N; j!=0; j--)
     1507      p_SetExp(p, j, ev[j-1], r);
     1508  p_SetComp(p, comp,r);
    14901509
    14911510  p_Setm(p, r);
Note: See TracChangeset for help on using the changeset viewer.