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

◆ syzygy()

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

Definition at line 406 of file aring-CC.hpp.

413 {
414 // TODO: remove this?
415 set_var(x, 0); // set x=1
416 if (!is_zero(b))
417 {
418 set(y, a);
419 negate(y, y);
420 divide(y, y, b);
421 }
422 }
void negate(ElementType &result, const ElementType &a) const
Definition aring-CC.hpp:228
void set(ElementType &result, const ElementType &a) const
Definition aring-CC.hpp:157
bool is_zero(const ElementType &f) const
Definition aring-CC.hpp:103
void set_var(ElementType &result, int v) const
Definition aring-CC.hpp:177
void divide(ElementType &res, const ElementType &a, const RealElementType &b) const
Definition aring-CC.hpp:319
volatile int x

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