Changeset d59bc4 in git
- Timestamp:
- Jan 29, 2019, 11:17:23 AM (4 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 54b24c79febc0e79ee3f9c6a86b7c4d505c69a43e7f87f8c0c1e0f9a32c413846486e3d60a8c191a
- Parents:
- 4b79c7b8189f75f27945f29fcb0e545394b85ab0
- Location:
- libpolys/polys/monomials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r4b79c7b rd59bc4 4881 4881 return G; 4882 4882 } 4883 4884 poly 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 -
libpolys/polys/monomials/p_polys.h
r4b79c7b rd59bc4 822 822 } 823 823 824 /// copy the i(leading) term of p 824 825 static inline poly p_Head(poly p, const ring r) 825 826 { … … 835 836 } 836 837 837 // returns a copy of p with Lm(p) from lmRing and Tail(p) from tailRing 838 /// like p_Head, but with coefficient 1 839 poly p_CopyPowerProduct(poly p, const ring r); 840 841 /// returns a copy of p with Lm(p) from lmRing and Tail(p) from tailRing 838 842 static inline poly p_Copy(poly p, const ring lmRing, const ring tailRing) 839 843 {
Note: See TracChangeset
for help on using the changeset viewer.