Changeset 6ee080 in git
- Timestamp:
- Nov 24, 2014, 8:06:57 PM (9 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- Children:
- abd6a89d45e459c5b2873fe52bf29f3e7a08e127
- Parents:
- 638ecc50fb697a8e0a643d6c393f667ff4a4be2f
- Location:
- kernel/GBEngine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/tgb.cc
r638ecc r6ee080 40 40 #if 1 41 41 static omBin lm_bin = NULL; 42 static int add_to_reductors(slimgb_alg* c, poly h, int len, int ecart, BOOLEAN simplified=FALSE); 43 static void multi_reduction(red_object* los, int & losl, slimgb_alg* c); 44 static void multi_reduce_step(find_erg & erg, red_object* r, slimgb_alg* c); 45 static BOOLEAN extended_product_criterion(poly p1, poly gcd1, poly p2, poly gcd2, slimgb_alg* c); 46 static poly gcd_of_terms(poly p, ring r); 47 static int tgb_pair_better_gen(const void* ap,const void* bp); 48 static BOOLEAN pair_better(sorted_pair_node* a,sorted_pair_node* b, slimgb_alg* c=NULL); 49 static BOOLEAN state_is(calc_state state, const int & i, const int & j, slimgb_alg* c); 50 static void super_clean_top_of_pair_list(slimgb_alg* c); 51 static int simple_posInS (kStrategy strat, poly p,int len, wlen_type wlen); 52 static int* make_connections(int from, int to, poly bound, slimgb_alg* c); 53 static BOOLEAN has_t_rep(const int & arg_i, const int & arg_j, slimgb_alg* state); 54 static void shorten_tails(slimgb_alg* c, poly monom); 55 static poly redNF2 (poly h,slimgb_alg* c , int &len, number& m,int n=0); 56 static poly redNFTail (poly h,const int sl,kStrategy strat, int len); 57 static int bucket_guess(kBucket* bucket); 42 58 43 59 static void simplify_poly (poly p, ring r) -
kernel/GBEngine/tgb_internal.h
r638ecc r6ee080 309 309 //SOONTREP 310 310 }; 311 //static BOOLEAN pair_cmp(sorted_pair_node* a,sorted_pair_node* b);312 311 template <class len_type, class set_type> int pos_helper(kStrategy strat, poly p, len_type len, set_type setL, polyset set); 313 static int add_to_reductors(slimgb_alg* c, poly h, int len, int ecart, BOOLEAN simplified=FALSE);314 static int bucket_guess(kBucket* bucket);315 static poly redNFTail (poly h,const int sl,kStrategy strat, int len);316 static poly redNF2 (poly h,slimgb_alg* c , int &len, number& m,int n=0);317 312 void free_sorted_pair_node(sorted_pair_node* s, ring r); 318 static void shorten_tails(slimgb_alg* c, poly monom);319 static void replace_pair(int & i, int & j, slimgb_alg* c);320 //static sorted_pair_node** add_to_basis(poly h, int i, int j,slimgb_alg* c, int* ip=NULL);321 //static void do_this_spoly_stuff(int i,int j,slimgb_alg* c);322 //ideal t_rep_gb(ring r,ideal arg_I);323 313 ideal do_t_rep_gb(ring r,ideal arg_I, int syz_comp, BOOLEAN F4_mode,int deg_pos); 324 static BOOLEAN has_t_rep(const int & arg_i, const int & arg_j, slimgb_alg* state);325 //static int* make_connections(int from, poly bound, slimgb_alg* c);326 static int* make_connections(int from, int to, poly bound, slimgb_alg* c);327 314 void now_t_rep(const int & arg_i, const int & arg_j, slimgb_alg* c); 328 //static void soon_t_rep(const int & arg_i, const int & arg_j, slimgb_alg* c); 329 //static int pLcmDeg(poly a, poly b); 330 static int simple_posInS (kStrategy strat, poly p,int len, wlen_type wlen); 331 //static BOOLEAN find_next_pair(slimgb_alg* c, BOOLEAN go_higher=TRUE); 332 333 //static sorted_pair_node* pop_pair(slimgb_alg* c); 334 //static BOOLEAN no_pairs(slimgb_alg* c); 315 335 316 void clean_top_of_pair_list(slimgb_alg* c); 336 static void super_clean_top_of_pair_list(slimgb_alg* c);337 static BOOLEAN state_is(calc_state state, const int & i, const int & j, slimgb_alg* c);338 static BOOLEAN pair_better(sorted_pair_node* a,sorted_pair_node* b, slimgb_alg* c=NULL);339 static int tgb_pair_better_gen(const void* ap,const void* bp);340 static poly redTailShort(poly h, kStrategy strat);341 static poly gcd_of_terms(poly p, ring r);342 static BOOLEAN extended_product_criterion(poly p1, poly gcd1, poly p2, poly gcd2, slimgb_alg* c);343 //static poly kBucketGcd(kBucket* b, ring r);344 static void multi_reduction(red_object* los, int & losl, slimgb_alg* c);345 317 int slim_nsize(number n, ring r); 346 318 sorted_pair_node* quick_pop_pair(slimgb_alg* c); … … 351 323 int tgb_pair_better_gen2(const void* ap,const void* bp); 352 324 int kFindDivisibleByInS_easy(kStrategy strat,poly p, long sev); 353 //static int quality(poly p, int len, slimgb_alg* c);354 325 /** 355 326 makes on each red_object in a region a single_step … … 402 373 403 374 }; 404 405 static void multi_reduce_step(find_erg & erg, red_object* r, slimgb_alg* c);406 //static void finalize_reduction_step(reduction_step* r);407 375 408 376 template <class len_type, class set_type> int pos_helper(kStrategy strat, poly p, len_type len, set_type setL, polyset set) … … 1457 1425 } 1458 1426 #endif 1459 static wlen_type pair_weighted_length(int i, int j, slimgb_alg* c);1460 1427 wlen_type pELength(poly p, ring r); 1461 1428 int terms_sort_crit(const void* a, const void* b);
Note: See TracChangeset
for help on using the changeset viewer.