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

◆ rawARingGaloisField1()

const Ring * rawARingGaloisField1 ( const RingElement * prim)

Definition at line 85 of file aring.cpp.

86{
88 if (R == nullptr) return nullptr; // error message has already been logged
89 try
90 {
91 return M2::ConcreteRing<M2::ARingGFM2>::create(*R, f->get_value());
92 } catch (const exc::engine_error& e)
93 {
94 ERROR(e.what());
95 return nullptr;
96 }
97}
static ConcreteRing< RingType > * create(std::unique_ptr< RingType > R)
Abstract base for the engine's polynomial-ring hierarchy.
Definition polyring.hpp:96
static const PolynomialRing * checkGaloisFieldInput(const RingElement *f)
Definition aring.cpp:56
const int ERROR
Definition m2-mem.cpp:55

References checkGaloisFieldInput(), M2::ConcreteRing< RingType >::create(), ERROR, and RingElement::get_value().