Changeset bca341 in git
- Timestamp:
- Jun 7, 2012, 5:43:32 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- f0b795a3ce2b873e7524b0af7df2ccd84a3fc628
- Parents:
- 6284186fbb128f1c5a0c99ff170cec4bb5afd5a3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r628418 rbca341 49 49 /* #define WITH_OLD_MINOR */ 50 50 #define pCopy_noCheck(p) pCopy(p) 51 52 static poly * idpower;53 /*collects the monomials in makemonoms, must be allocated befor*/54 static int idpowerpoint;55 /*index of the actual monomial in idpower*/56 static poly * givenideal;57 /*the ideal from which a power is computed*/58 51 59 52 /*0 implementation*/ … … 546 539 ideal h2, h3; 547 540 int i; 548 int j, jj=0,k;541 int j,k; 549 542 poly p,q; 550 543 … … 641 634 { 642 635 ideal s_h1; 643 poly p;644 636 int j, k, length=0,reg; 645 637 BOOLEAN isMonomial=TRUE; … … 789 781 { 790 782 ideal s_h1; 791 int j;792 783 intvec *w=NULL; 793 784 … … 837 828 { 838 829 int i, j, k, t, inputIsIdeal=id_RankFreeModule(h1,currRing); 839 poly p=NULL, q , qq;830 poly p=NULL, q; 840 831 intvec *w=NULL; 841 832 … … 1252 1243 p=pJetW(pSub(p,ppMult_mm(Q->m[j],p0)),N,w); 1253 1244 pNormalize(p); 1254 if(( w==NULL)&&(p_Deg(p0,currRing)>n)||(w!=NULL)&&(pDegW(p0,w)>n))1245 if(((w==NULL)&&(p_Deg(p0,currRing)>n))||((w!=NULL)&&(pDegW(p0,w)>n))) 1255 1246 p_Delete(&p0,currRing); 1256 1247 else … … 1408 1399 } 1409 1400 BITSET old_test=test; 1410 int i, l,ll,k,kkk,kmax;1401 int i, kmax; 1411 1402 BOOLEAN addOnlyOne=TRUE; 1412 1403 tHomog hom=isNotHomog; … … 1976 1967 { 1977 1968 p=P[i]; 1978 poly q=p;1979 1969 if (p!=NULL) 1980 1970 { … … 2107 2097 intvec *wtmp=NULL; 2108 2098 2109 int i, j,k,rk,flength=0,slength,length;2099 int i,k,rk,flength=0,slength,length; 2110 2100 poly p,q; 2111 2101 -
libpolys/coeffs/bigintmat.cc
r628418 rbca341 15 15 #include <string.h> 16 16 17 #define BIMATELEM(M,I,J) (M)[ (M).index(I,J) ]17 //#define BIMATELEM(M,I,J) (M)[ (M).index(I,J) ] 18 18 19 19 bigintmat * bigintmat::transpose() -
libpolys/polys/ext_fields/algext.cc
r628418 rbca341 206 206 naTest(a); 207 207 poly aAsPoly = (poly)a; 208 if ( !p_IsConstant(aAsPoly, naRing)) return FALSE;208 if ((a==NULL) || (!p_IsConstant(aAsPoly, naRing))) return FALSE; 209 209 return n_IsOne(p_GetCoeff(aAsPoly, naRing), naCoeffs); 210 210 } … … 214 214 naTest(a); 215 215 poly aAsPoly = (poly)a; 216 if ( !p_IsConstant(aAsPoly, naRing)) return FALSE;216 if ((a==NULL) || (!p_IsConstant(aAsPoly, naRing))) return FALSE; 217 217 return n_IsMOne(p_GetCoeff(aAsPoly, naRing), naCoeffs); 218 218 } … … 600 600 p_Test((poly)reducer, naRing); 601 601 #endif 602 p_PolyDiv(p, reducer, FALSE, naRing); 602 if ((p!=NULL) && (p_GetExp(p,1,naRing)>=p_GetExp(reducer,1,naRing))) 603 { 604 p_PolyDiv(p, reducer, FALSE, naRing); 605 } 603 606 } 604 607
Note: See TracChangeset
for help on using the changeset viewer.