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

◆ relative_to_absolute()

template<class Field>
void SLP< Field >::relative_to_absolute ( int & aa,
int cur_node )
inlineprivate

Definition at line 528 of file NAG.hpp.

531 {
532 if (aa < 0)
533 aa = cur_node + aa;
534 else if (aa < CONST_OFFSET)
535 aa = num_consts + aa; // an input
536 else
537 aa -= CONST_OFFSET; // a constant
538 }
int num_consts
Definition NAG.hpp:502
Definition NAG.hpp:485

References CONST_OFFSET, and num_consts.

Referenced by convert_to_absolute_position().