Changeset ec989c in git for factory/fac_multivar.cc
- Timestamp:
- Oct 24, 2002, 2:17:49 PM (21 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- e44bd88b22a2439b301aba30f2adc6bb930bbefc
- Parents:
- 7724a3281f0baa9aa017ab10865fcac877d85684
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/fac_multivar.cc
r7724a3 rec989c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: fac_multivar.cc,v 1. 9 2002-10-10 17:43:40Singular Exp $ */2 /* $Id: fac_multivar.cc,v 1.10 2002-10-24 12:17:49 Singular Exp $ */ 3 3 4 4 #include <config.h> … … 20 20 #include "fac_distrib.h" 21 21 22 void out_cf(char *s1,const CanonicalForm &f,char *s2); 22 23 23 24 TIMING_DEFINE_PRINT(fac_content); … … 148 149 for ( CFIterator i = f; i.hasTerms(); i++ ) 149 150 { 151 if((i.exp()!=0) && ((i.exp() % cf_getSmallPrime(start))==0)) 152 { 153 start++; 154 CanonicalForm ff=r; 155 find_good_prime(ff,r,start); 156 return; 157 } 150 158 find_good_prime(i.coeff(),r,start); 151 159 } … … 240 248 } 241 249 modpk bb=coeffBound(U0,p); 242 if (bb.get pk() > b.getpk() ) b=bb;250 if (bb.getk() > b.getk() ) b=bb; 243 251 bb=coeffBound(arg,p); 244 if (bb.get pk() > b.getpk() ) b=bb;252 if (bb.getk() > b.getk() ) b=bb; 245 253 } 246 254 #else … … 249 257 b = getZFacModulus(); 250 258 #endif 259 //printf("p=%d, k=%d\n",b.getp(),b.getk()); 251 260 DEBOUTLN( cerr, "the coefficient bound of the factors of U is " << b.getpk() ); 252 261
Note: See TracChangeset
for help on using the changeset viewer.