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
inline
virtual
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
);
384
ring_elem
result
;
385
R
->power(
b
,
a
,
n
);
386
R
->to_ring_elem(
result
,
b
);
387
return
result
;
388
}
M2::ConcreteRing::ElementType
RingType::ElementType ElementType
Definition
aring-glue.hpp:75
M2::ConcreteRing::R
std::unique_ptr< RingType > R
Definition
aring-glue.hpp:66
M2::ConcreteRing::Element
RingType::Element Element
Definition
aring-glue.hpp:76
M2::ConcreteRing
Definition
aring-glue.hpp:65
M2
ConcreteRing
Generated on
for Macaulay2 Engine by
1.15.0