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

◆ current_value()

vecterm * vecHeap::current_value ( ) const
inline

Definition at line 184 of file geovec.hpp.

185{
186 vecterm *result = NULL;
187 for (int i = 0; i <= top_of_heap; i++)
188 {
189 if (heap[i] == NULL) continue;
190 vecterm *tmp = K->copy_vec(heap[i]);
191 K->add_vec_to(result, tmp);
192 }
193 return result;
194}
const Ring * K
Definition geovec.hpp:52
vecterm * heap[GEOHEAP_SIZE]
Definition geovec.hpp:53
int top_of_heap
Definition geovec.hpp:54
VALGRIND_MAKE_MEM_DEFINED & result(result)

References heap, K, result(), and top_of_heap.