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

◆ syzygy()

void M2::ARingRR::syzygy ( const ElementType & a,
const ElementType & b,
ElementType & x,
ElementType & y ) const
inline

Definition at line 248 of file aring-RR.hpp.

255 {
256 // TODO: remove this?
257 set_var(x, 0); // set x=1
258 if (!is_zero(b))
259 {
260 set(y, a);
261 negate(y, y);
262 divide(y, y, b);
263 }
264 }
void divide(ElementType &result, const ElementType &a, const ElementType &b) const
Definition aring-RR.hpp:210
bool is_zero(const ElementType &f) const
Definition aring-RR.hpp:86
void negate(ElementType &result, const ElementType &a) const
Definition aring-RR.hpp:168
void set(ElementType &result, const ElementType &a) const
Definition aring-RR.hpp:126
void set_var(ElementType &result, int v) const
Definition aring-RR.hpp:139
volatile int x

References divide(), is_zero(), negate(), set(), set_var(), and x.