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

◆ discreteLog()

long Z_mod::discreteLog ( const ring_elem & a) const
virtual

Reimplemented from Ring.

Definition at line 85 of file ZZp.cpp.

86{
87 if (a.get_int() == _ZERO) return -1;
88 return a.get_int();
89}
int _ZERO
Definition ZZp.hpp:68
int get_int() const
Definition ringelem.hpp:124

References _ZERO, and ring_elem::get_int().