Ignore:
Timestamp:
Jan 29, 2019, 11:17:23 AM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
54b24c79febc0e79ee3f9c6a86b7c4d505c69a43e7f87f8c0c1e0f9a32c413846486e3d60a8c191a
Parents:
4b79c7b8189f75f27945f29fcb0e545394b85ab0
Message:
add: p_CopyPowerProduct
File:
1 edited

Legend:

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

    r4b79c7b rd59bc4  
    48814881  return G;
    48824882}
     4883
     4884poly p_CopyPowerProduct(poly p, const ring r)
     4885{
     4886  if (p == NULL) return NULL;
     4887  p_LmCheckPolyRing1(p, r);
     4888  poly np;
     4889  omTypeAllocBin(poly, np, r->PolyBin);
     4890  p_SetRingOfLm(np, r);
     4891  memcpy(np->exp, p->exp, r->ExpL_Size*sizeof(long));
     4892  pNext(np) = NULL;
     4893  pSetCoeff0(np, n_Init(1, r->cf));
     4894  return np;
     4895}
     4896
Note: See TracChangeset for help on using the changeset viewer.