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

◆ convertGFToFactory() [2/2]

CanonicalForm convertGFToFactory ( const std::vector< long > & repr)
static

Definition at line 370 of file factory.cpp.

371{
372 // Uses algebraicElement_Fac as the element
373 CanonicalForm f = 0;
374 for (int i = 0; i < repr.size(); i++)
375 {
376 if (repr[i] == 0) continue;
377 CanonicalForm m = CanonicalForm(repr[i]);
378 m *= power(algebraicElement_Fac, i);
379 f += m;
380 }
381 return f;
382}
CanonicalForm algebraicElement_Fac
Definition factory.cpp:80

References algebraicElement_Fac.

Referenced by convertGFToFactory(), and convertToFactory().