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

◆ power() [1/2]

template<class RingType>
virtual ring_elem M2::ConcreteRing< RingType >::power ( const ring_elem f,
int n ) const
inlinevirtual

Reimplemented from Ring.

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

380 {
381 if (displayArithmeticCalls) fprintf(stderr, "calling power int\n");
382 const ElementType &a = R->from_ring_elem_const(f);
383 Element b(*R);
385 R->power(b, a, n);
386 R->to_ring_elem(result, b);
387 return result;
388 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R
RingType::Element Element