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

◆ negate()

template<class RingType>
virtual ring_elem M2::ConcreteRing< RingType >::negate ( const ring_elem f) const
inlinevirtual

Implements Ring.

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

322 {
323 if (displayArithmeticCalls) fprintf(stderr, "calling negate\n");
324 const ElementType &a = R->from_ring_elem_const(f);
325 Element b(*R);
327 R->negate(b, a);
328 R->to_ring_elem(result, b);
329 return result;
330 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R
RingType::Element Element

Referenced by TEST(), TEST(), TEST(), and TEST().