Changeset da64b7 in git


Ignore:
Timestamp:
Sep 14, 2017, 12:27:11 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
99fd484159414561bf7019da99a66f165e45ac98
Parents:
61ed0b79e82007a738643177ae70734b631b2477
Message:
add: introduce p_LmHead: copy without coef
File:
1 edited

Legend:

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

    r61ed0b rda64b7  
    823823}
    824824
     825static inline poly p_LmHead(poly p, const ring r)
     826{
     827  p_LmCheckPolyRing1(p, r);
     828  poly np;
     829  omTypeAllocBin(poly, np, r->PolyBin);
     830  p_SetRingOfLm(np, r);
     831  memcpy(np->exp, p->exp, r->ExpL_Size*sizeof(long));
     832  pNext(np) = NULL;
     833  return np;
     834}
     835
    825836// returns a copy of p with Lm(p) from lmRing and Tail(p) from tailRing
    826837static inline poly p_Copy(poly p, const ring lmRing, const ring tailRing)
Note: See TracChangeset for help on using the changeset viewer.