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

◆ value()

vecterm * vecHeap::value ( )
inline

Definition at line 172 of file geovec.hpp.

173{
174 vecterm *result = NULL;
175 for (int i = 0; i <= top_of_heap; i++)
176 {
177 if (heap[i] == NULL) continue;
178 K->add_vec_to(result, heap[i]);
179 heap[i] = NULL;
180 }
181 top_of_heap = -1;
182 return result;
183}
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.

Referenced by Ring::tensor(), res2_poly::to_vector(), and res_poly::to_vector().