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

◆ getGFRepresentation()

void getGFRepresentation ( const Ring * kk1,
const ring_elem & a,
std::vector< long > & result_rep )
static

Definition at line 359 of file factory.cpp.

362{
363 assert(kk1->isGaloisField());
364 // const GF* kk = kk1->cast_to_GF();
365 // assert(kk != 0);
366 const RingElement *F = kk1->getRepresentation(a);
367 // RingElement F(kk->originalR(), kk->get_rep(a));
368 F->getSmallIntegerCoefficients(result_rep);
369}
virtual bool isGaloisField() const
Definition ring.hpp:170
virtual const RingElement * getRepresentation(const ring_elem &a) const
Definition ring.hpp:326
bool getSmallIntegerCoefficients(std::vector< long > &result_coeffs) const
Definition relem.cpp:421
Front-end-visible "ring element" value: an engine ring_elem paired with the Ring* that gives it meani...
Definition relem.hpp:67

References Ring::getRepresentation(), RingElement::getSmallIntegerCoefficients(), and Ring::isGaloisField().

Referenced by convertGFToFactory().