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

◆ invert()

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

Implements Ring.

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

391 {
392 if (displayArithmeticCalls) fprintf(stderr, "calling invert\n");
393 const ElementType &a = R->from_ring_elem_const(f);
394 Element b(*R);
396 R->invert(b, a);
397 R->to_ring_elem(result, b);
398 return result;
399 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R
RingType::Element Element