- Timestamp:
- Aug 11, 2022, 2:15:03 PM (21 months ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 959b2d791fb6ac7b1528755b4d5a2c9290261b38
- Parents:
- c93e63b277430f6fe6f6a302af80b2b3f76909a6
- Location:
- libpolys/polys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/pCoeff.cc
rc93e63 r2e48e4 18 18 #include "simpleideals.h" 19 19 20 /// find coeff of (polynomial/vector) m in polynomial/vector p 20 /// find coeff of (polynomial) m in polynomial p 21 /// find coeff of (vector) m in vector p 21 22 number p_CoeffTerm(poly p, poly m, const ring r) 22 23 { … … 53 54 54 55 /// find coeffs of (polynomial) m in all polynomials from I 56 /// find coeffs of (vector) m in all vectors from I 55 57 ideal id_CoeffTerm(ideal I, poly m, const ring r) 56 58 { 57 ideal res=idInit(IDELEMS(I), 1);59 ideal res=idInit(IDELEMS(I),I->rank); 58 60 for(int i=IDELEMS(I)-1;i>=0;i--) 59 61 { … … 67 69 ideal id_CoeffTermV(ideal M, poly m, const ring r) 68 70 { 69 ideal res=idInit(IDELEMS(M), 1);71 ideal res=idInit(IDELEMS(M),M->rank); 70 72 for(int i=IDELEMS(M)-1;i>=0;i--) 71 73 { -
libpolys/polys/pCoeff.h
rc93e63 r2e48e4 17 17 #include "simpleideals.h" 18 18 19 /// find coeff of (polynomial/vector) m in polynomial/vector p 19 /// find coeff of (polynomial) m in polynomial p 20 /// find coeff of (vector) m in vector p 20 21 number p_CoeffTerm(poly p, poly m, const ring r); 21 22 … … 24 25 25 26 /// find coeffs of (polynomial) m in all polynomials from I 27 /// find coeffs of (vector) m in all vectors from I 26 28 ideal id_CoeffTerm(ideal I, poly m, const ring r); 27 29
Note: See TracChangeset
for help on using the changeset viewer.