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

◆ power_mod()

ring_elem Tower::power_mod ( const ring_elem f,
mpz_srcptr n,
const ring_elem g ) const

Definition at line 408 of file tower.cpp.

411{
412 TowerPolynomial f1 = TOWER_POLYNOMIAL_VAL(f);
413 TowerPolynomial g1 = TOWER_POLYNOMIAL_VAL(g);
414 TowerPolynomial h = nullptr;
415 D->power_mod(h, f1, n, g1);
416 return TOWER_RINGELEM(h);
417}
DRing * D
Definition tower.hpp:66
#define TOWER_RINGELEM(a)
Definition ringelem.hpp:214
#define TOWER_POLYNOMIAL_VAL(f)
Definition tower.cpp:12

References D, TOWER_POLYNOMIAL_VAL, and TOWER_RINGELEM.

Referenced by rawPowerMod().