Definition at line 120 of file geovec.hpp.
121{
122 int lead_so_far = -1;
124 {
125 if (
heap[i] == NULL)
continue;
126 if (lead_so_far < 0)
127 {
128 lead_so_far = i;
129 continue;
130 }
132 if (cmp ==
GT)
continue;
134 {
135 lead_so_far = i;
136 continue;
137 }
138
139 K->add_to(
heap[lead_so_far]->coeff,
heap[i]->coeff);
140 vecterm *tmp =
heap[i];
144
145 if (
K->is_zero(
heap[lead_so_far]->coeff))
146 {
147
148 tmp =
heap[lead_so_far];
152 lead_so_far = -1;
153 i = -1;
154 }
155 }
157 if (lead_so_far < 0) return NULL;
160}
vecterm * heap[GEOHEAP_SIZE]
static int compare(const vecterm *t, const vecterm *s)
VALGRIND_MAKE_MEM_DEFINED & result(result)
References compare(), GT, heap, K, LT, mLead, vec::next, result(), and top_of_heap.
Referenced by remove_lead_term().