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

◆ syzygy()

template<class RingType>
virtual void M2::ConcreteRing< RingType >::syzygy ( const ring_elem f,
const ring_elem g,
ring_elem & x,
ring_elem & y ) const
inlinevirtual

Implements Ring.

Definition at line 413 of file aring-glue.hpp.

417 {
418 if (displayArithmeticCalls) fprintf(stderr, "calling syzygy\n");
419 const ElementType &a = R->from_ring_elem_const(f);
420 const ElementType &b = R->from_ring_elem_const(g);
421 Element xe(*R), ye(*R);
422 R->syzygy(a, b, xe, ye);
423 R->to_ring_elem(x, xe);
424 R->to_ring_elem(y, ye);
425 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R
RingType::Element Element

Referenced by TEST(), and TEST().