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

◆ ~HermiteComputation()

HermiteComputation::~HermiteComputation ( )

Definition at line 90 of file hermite.cpp.

91{
92 // I am pretty sure the logic is as follows here (MES):
93 // the GB_list contains all of the remaining hm_elems's
94 // the 'next' field for these is the GB_list list.
95 // the initial[i] list first contains all elements input that
96 // have i as their lead term.
97 // but after computing this component, initial[i] is first set to nullptr,
98 // then to the lone GB element with this component.
99 // AND this element is on the GB_list.
100 // Upshot: to remove all of the hn_elem's: 2 choices:
101 // (1) just delete elems on GB_list, and not on initials lists.
102 // (2) just delete the first element on each element list.
103 //
104 //
105
106 // Remove the Groebner basis:
107
108 while (GB_list != nullptr)
109 {
110 hm_elem *tmp = GB_list;
111 GB_list = tmp->next;
112 remove_hm_elem(tmp);
113 }
114}
void remove_hm_elem(hm_elem *&p)
Definition hermite.cpp:81
hm_elem * GB_list
Definition hermite.hpp:63
hm_elem * next
Definition hermite.hpp:44

References GB_list, hm_elem::next, and remove_hm_elem().