|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.structure.Power<C>
public class Power<C extends RingElem<C>>
Power class to compute powers of RingElem.
| Constructor Summary | |
|---|---|
Power()
The constructor creates a Power object. |
|
Power(RingFactory<C> fac)
The constructor creates a Power object. |
|
| Method Summary | ||
|---|---|---|
static
|
logarithm(C p,
C a)
Logarithm. |
|
static
|
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
|
modPower(MonoidFactory<C> fac,
C a,
java.math.BigInteger n,
C m)
power of a to the n-th modulo m. |
|
static
|
modPower(MonoidFactory<C> fac,
C a,
long n,
C m)
power of a to the n-th modulo m. |
|
static
|
multiply(MonoidFactory<C> fac,
java.util.List<C> A)
Multiply elements in list. |
|
static
|
multiply(RingFactory<C> fac,
java.util.List<C> A)
Multiply elements in list. |
|
static
|
positivePower(C a,
java.math.BigInteger n)
power of a to the n-th, n positive. |
|
static
|
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
|
power(MonoidFactory<C> fac,
C a,
long n)
power of a to the n-th. |
|
static
|
power(RingFactory<C> fac,
C a,
long n)
power of a to the n-th. |
|
static
|
sum(AbelianGroupFactory<C> fac,
java.util.List<C> A)
Sum elements in list. |
|
static
|
sum(RingFactory<C> fac,
java.util.List<C> A)
Sum elements in list. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Power()
public Power(RingFactory<C> fac)
fac - ring factory| Method Detail |
|---|
public 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 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||