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

◆ to_int()

int Z_mod::to_int ( int a) const
private

Definition at line 73 of file ZZp.cpp.

74{
75 int n = _exp_table[f];
76 if (n > P / 2) n -= P;
77 return n;
78}
int P
Definition ZZp.hpp:65
int * _exp_table
Definition ZZp.hpp:72

References _exp_table, and P.

Referenced by coerceToLongInteger(), elem_text_out(), eval(), and lift().