| Constructor and Description |
|---|
Power()
The constructor creates a Power object.
|
Power(RingFactory<C> fac)
The constructor creates a Power object.
|
| Modifier and Type | Method and Description |
|---|---|
static <C extends RingElem<C>> |
logarithm(C p,
C a)
Logarithm.
|
static <C extends RingElem<C>> |
modPositivePower(C a,
long n,
C m)
power of a to the n-th, n positive, modulo m.
|
C |
modPower(C a,
java.math.BigInteger n,
C m)
power of a to the n-th mod m.
|
C |
modPower(C a,
long n,
C m)
power of a to the n-th mod m.
|
static <C extends MonoidElem<C>> |
modPower(MonoidFactory<C> fac,
C a,
java.math.BigInteger n,
C m)
power of a to the n-th modulo m.
|
static <C extends MonoidElem<C>> |
modPower(MonoidFactory<C> fac,
C a,
long n,
C m)
power of a to the n-th modulo m.
|
static <C extends MonoidElem<C>> |
multiply(MonoidFactory<C> fac,
java.util.List<C> A)
Multiply elements in list.
|
static <C extends RingElem<C>> |
multiply(RingFactory<C> fac,
java.util.List<C> A)
Multiply elements in list.
|
static <C extends RingElem<C>> |
positivePower(C a,
java.math.BigInteger n)
power of a to the n-th, n positive.
|
static <C extends RingElem<C>> |
positivePower(C a,
long n)
power of a to the n-th, n positive.
|
C |
power(C a,
long n)
power of a to the n-th.
|
static long |
power(long a,
long n)
power of a to the n-th.
|
static <C extends MonoidElem<C>> |
power(MonoidFactory<C> fac,
C a,
long n)
power of a to the n-th.
|
static <C extends RingElem<C>> |
power(RingFactory<C> fac,
C a,
long n)
power of a to the n-th.
|
static <C extends AbelianGroupElem<C>> |
sum(AbelianGroupFactory<C> fac,
java.util.List<C> A)
Sum elements in list.
|
static <C extends RingElem<C>> |
sum(RingFactory<C> fac,
java.util.List<C> A)
Sum elements in list.
|
public Power()
public Power(RingFactory<C> fac)
fac - ring factorypublic static <C extends RingElem<C>> C positivePower(C a, long n)
a - element.n - integer exponent > 0.public static <C extends RingElem<C>> C positivePower(C a, java.math.BigInteger n)
a - element.n - java.math.BigInteger exponent > 0.public static <C extends RingElem<C>> C modPositivePower(C a, long n, C m)
a - element.n - integer exponent > 0.m - modulus.public static <C extends RingElem<C>> C power(RingFactory<C> fac, C a, long n)
a - element.n - integer exponent.fac - ring factory.public static <C extends MonoidElem<C>> C power(MonoidFactory<C> fac, C a, long n)
a - element.n - integer exponent.fac - monoid factory.public static <C extends MonoidElem<C>> C modPower(MonoidFactory<C> fac, C a, long n, C m)
a - element.n - integer exponent.m - modulus.fac - monoid factory.public static <C extends MonoidElem<C>> C modPower(MonoidFactory<C> fac, C a, java.math.BigInteger n, C m)
a - element.n - integer exponent.m - modulus.fac - monoid factory.public C power(C a, long n)
a - element.n - integer exponent.public static long power(long a, long n)
a - long.n - integer exponent.public C modPower(C a, long n, C m)
a - element.n - integer exponent.m - modulus.public C modPower(C a, java.math.BigInteger n, C m)
a - element.n - integer exponent.m - modulus.public static <C extends RingElem<C>> long logarithm(C p, C a)
p - logarithm base.a - element.public static <C extends RingElem<C>> C multiply(RingFactory<C> fac, java.util.List<C> A)
A - list of elements (a_0,...,a_k).fac - ring factory.public static <C extends MonoidElem<C>> C multiply(MonoidFactory<C> fac, java.util.List<C> A)
A - list of elements (a_0,...,a_k).fac - monoid factory.public static <C extends RingElem<C>> C sum(RingFactory<C> fac, java.util.List<C> A)
A - list of elements (a_0,...,a_k).fac - ring factory.public static <C extends AbelianGroupElem<C>> C sum(AbelianGroupFactory<C> fac, java.util.List<C> A)
A - list of elements (a_0,...,a_k).fac - monoid factory.