Macaulay2 Engine
Loading...
Searching...
No Matches
◆
power_mpz()
void M2::ARingQQGMP::power_mpz
(
ElementType
&
result
,
const
ElementType
&
a
,
mpz_srcptr
n
) const
inline
Definition at line
246
of file
aring-qq-gmp.hpp
.
249
{
250
std::pair<bool, int> n1 =
RingZZ::get_si
(n);
251
if
(n1.first)
252
power
(
result
, a, n1.second);
253
else
254
throw
exc::engine_error(
"exponent too large"
);
255
}
M2::ARingQQGMP::power
void power(ElementType &result, const ElementType &a, long n) const
Definition
aring-qq-gmp.hpp:231
RingZZ::get_si
static std::pair< bool, int > get_si(mpz_srcptr n)
Definition
ZZ.cpp:46
result
VALGRIND_MAKE_MEM_DEFINED & result(result)
References
RingZZ::get_si()
,
power()
, and
result()
.
M2
ARingQQGMP
Generated on
for Macaulay2 Engine by
1.15.0