Macaulay2 Engine
Loading...
Searching...
No Matches

◆ end_degree()

void gb2_comp::end_degree ( )

Definition at line 662 of file res-a2-gb.cpp.

663{
664 if ((strategy_flags & STRATEGY_SORT) != 0)
665 {
666 gb_sort(n_gb_first, n_gb - 1); // This is the range of elements to sort.
667 }
668 for (int j = n_gb_first; j < n_gb; j++) gb[j]->me = j;
669 if (orig_syz < 0)
670 {
671 for (int j = n_gb_first; j < n_gb; j++)
672 if (gb[j]->is_min)
673 {
674 schreyer_append(gb[j]->f);
675 gb[j]->fsyz = GR->gbvector_term(Fsyz, GR->one(), Fsyz->rank());
676 }
677 }
678
679 // Now set the state so that we know we have finished here
680 this_degree++;
682}
int n_gb_first
Definition res-a2.hpp:126
FreeModule * Fsyz
Definition res-a2.hpp:121
void gb_sort(int lo, int hi)
int orig_syz
Definition res-a2.hpp:157
int n_gb
Definition res-a2.hpp:141
int this_degree
Definition res-a2.hpp:125
int state
Definition res-a2.hpp:124
int strategy_flags
Definition res-a2.hpp:160
void schreyer_append(gbvector *f)
GBRing * GR
Definition res-a2.hpp:114
@ STRATEGY_SORT
void gb(IntermediateBasis &F, int n)
#define STATE_NEW_DEGREE
Definition res-a2.hpp:13

References Fsyz, gb(), gb_sort(), GR, n_gb, n_gb_first, orig_syz, schreyer_append(), state, STATE_NEW_DEGREE, strategy_flags, STRATEGY_SORT, and this_degree.

Referenced by calc_gb(), and calc_gens().