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

◆ internal_negate()

int GF::internal_negate ( int f) const
private

Definition at line 320 of file GF.cpp.

321{
322 if (f == _ZERO) return _ZERO;
323 return f = modulus_add(f, _MINUS_ONE, Q1_);
324}
static int modulus_add(int a, int b, int p)
Definition GF.cpp:169
int _MINUS_ONE
Definition GF.hpp:74
int Q1_
Definition GF.hpp:71
int _ZERO
Definition GF.hpp:72

References _MINUS_ONE, _ZERO, modulus_add(), and Q1_.

Referenced by negate(), and syzygy().