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

◆ syzygy()

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

Definition at line 510 of file aring-CCC.hpp.

517 {
518 set_var(x, 0); // set x=1
519 if (!is_zero(b))
520 {
521 set(y, a);
522 negate(y, y);
523 divide(y, y, b);
524 }
525 }
bool is_zero(const ElementType &f) const
void negate(ElementType &result, const ElementType &a) const
void set(ElementType &result, const ElementType &a) const
void set_var(ElementType &result, int v) const
void divide(ElementType &res, const ElementType &a, const RealElementType &b) const
volatile int x

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