Changeset 867f21 in git
- Timestamp:
- Jan 31, 2018, 9:50:33 PM (6 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 40c74377d47175ef0556381c3b9eb60f05676280
- Parents:
- c85a29d68f3b14b5466567b25ce4f175fd4d3512
- git-author:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2018-01-31 21:50:33+01:00
- git-committer:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2018-02-02 11:16:48+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/syz4.cc
rc85a29 r867f21 22 22 */ 23 23 #define CACHE 1 24 25 /* 26 * If set to true, the current module is modfied after each lifting step in the 27 * resolution: any term which contains a variable which does not appear among 28 * the (induced) leading terms is deleted. Note that the resulting object is 29 * not necessarily a complex anymore. However, constant entries remain exactly 30 * the same. 31 */ 32 #define FRES_TENSOR_TRICK 1 24 33 25 34 /* … … 548 557 } 549 558 559 #if FRES_TENSOR_TRICK 560 /* 561 * check if the monomial m contains any of the variables set to false 562 */ 550 563 static inline bool contains_unused_variable(const poly m, 551 564 const std::vector<bool> &variables) … … 560 573 } 561 574 562 static void delete_variables(resolvente &res, const int index, 563 std::vector<bool> variables) 575 /* 576 * delete any term in res[index] which contains any of the variables set to 577 * false 578 */ 579 static void delete_variables(resolvente res, const int index, 580 const std::vector<bool> &variables) 564 581 { 565 582 for (int i = 0; i < res[index]->ncols; i++) { … … 576 593 } 577 594 } 595 #endif // FRES_TENSOR_TRICK 578 596 579 597 static void delete_tails(resolvente res, const int index) … … 603 621 if (do_lifting) { 604 622 update_variables(variables, res[0]); 623 #if FRES_TENSOR_TRICK 605 624 delete_variables(res, 0, variables); 625 #endif // FRES_TENSOR_TRICK 606 626 } 607 627 while (!idIs0(res[index])) { … … 616 636 variables[currRing->N] = false; 617 637 } 638 #if FRES_TENSOR_TRICK 618 639 delete_variables(res, index, variables); 640 #endif // FRES_TENSOR_TRICK 619 641 } 620 642 if (index >= max_index) { break; }
Note: See TracChangeset
for help on using the changeset viewer.