Macaulay2 Engine
Loading...
Searching...
No Matches
◆
discrete_log()
int
GF::discrete_log
(
ring_elem
a
)
const
Definition at line
162
of file
GF.cpp
.
163
{
164
if
(a.
get_int
() ==
_ZERO
)
return
-1;
165
if
(a.
get_int
() ==
Q1_
)
return
0;
166
return
a.
get_int
();
167
}
GF::Q1_
int Q1_
Definition
GF.hpp:71
GF::_ZERO
int _ZERO
Definition
GF.hpp:72
ring_elem::get_int
int get_int() const
Definition
ringelem.hpp:124
References
_ZERO
,
ring_elem::get_int()
, and
Q1_
.
GF
Generated on
for Macaulay2 Engine by
1.15.0