Macaulay2 Engine
Loading...
Searching...
No Matches
◆
rawGaloisField()
const
Ring
* rawGaloisField
(
const
RingElement
*
f
)
Definition at line
76
of file
ring.cpp
.
77
{
78
// Check that the ring R of f is a polynomial ring in one var over a ZZ/p
79
// Check that f has degree >= 2
80
// Check that f is monic
81
// If any of these fail, then return 0.
82
try
83
{
84
return
GF::create
(f);
85
}
catch
(
const
exc::engine_error
& e)
86
{
87
ERROR
(e.what());
88
return
nullptr
;
89
}
90
}
GF::create
static GF * create(const RingElement *prim)
Definition
GF.cpp:127
ERROR
const int ERROR
Definition
m2-mem.cpp:55
exc::engine_error
Definition
exceptions.hpp:42
References
GF::create()
, and
ERROR
.
Macaulay2
e
interface
ring.cpp
Generated on
for Macaulay2 Engine by
1.15.0