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

◆ get_resolved_gb_index()

int gbA::get_resolved_gb_index ( int i) const
private

Definition at line 26 of file gb-default.cpp.

27{
28 if (not over_ZZ()) return i;
29 int prev = i;
30 int next = forwardingZZ[i];
31 while (next != -1)
32 {
33 prev = next;
34 next = forwardingZZ[prev];
35 }
36 if (M2_gbTrace >= 16)
37 {
38 buffer o;
39 o << "resolve(" << i << ") = " << prev << newline;
40 std::cout << o.str() << std::endl;
41 }
42 return prev;
43}
char * str()
Definition buffer.hpp:72
bool over_ZZ() const
char newline[]
Definition m2-types.cpp:49
int M2_gbTrace
Definition m2-types.cpp:52

References M2_gbTrace, newline, over_ZZ(), and buffer::str().

Referenced by compute_s_pair().