Operations for power and nroot propagators. More...
#include <arithmetic.hh>
Public Member Functions | |
PowOps (int n) | |
Initialize with exponent n. More... | |
bool | even (void) const |
Return whether exponent is even. More... | |
int | exp (void) const |
Return exponent. More... | |
void | exp (int m) |
Set exponent to m. More... | |
template<class IntType > | |
IntType | pow (IntType x) const |
Return ![]() ![]() | |
int | tpow (int x) const |
Return ![]() ![]() | |
int | fnroot (int x) const |
Return ![]() ![]() | |
int | cnroot (int x) const |
Return ![]() ![]() | |
Protected Member Functions | |
bool | powgr (long long int r, int x) const |
Test whether ![]() | |
bool | powle (long long int r, int x) const |
Test whether ![]() | |
Static Protected Member Functions | |
static bool | even (int m) |
Return whether m is even. More... | |
Protected Attributes | |
int | n |
The exponent and root index. More... | |
Operations for power and nroot propagators.
Requires
Definition at line 329 of file arithmetic.hh.
|
inline |
Initialize with exponent n.
Definition at line 41 of file pow-ops.hpp.
|
inlinestaticprotected |
Return whether m is even.
Definition at line 44 of file pow-ops.hpp.
|
inlineprotected |
Test whether .
Definition at line 98 of file pow-ops.hpp.
|
inlineprotected |
Test whether .
Definition at line 136 of file pow-ops.hpp.
|
inline |
Return whether exponent is even.
Definition at line 49 of file pow-ops.hpp.
|
inline |
Return exponent.
Definition at line 54 of file pow-ops.hpp.
|
inline |
Set exponent to m.
Definition at line 59 of file pow-ops.hpp.
|
inline |
Return where
.
Definition at line 65 of file pow-ops.hpp.
|
inline |
Return where
truncated to integer limits.
Definition at line 79 of file pow-ops.hpp.
|
inline |
Return where x must be non-negative and
.
Definition at line 119 of file pow-ops.hpp.
|
inline |
Return where x must be non-negative and
.
Definition at line 157 of file pow-ops.hpp.
|
protected |
The exponent and root index.
Definition at line 332 of file arithmetic.hh.