|
|||||||||
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
|
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. |
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 factoryMethod 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 power(RingFactory<C> fac, C a, long n)
a
- element.n
- integer exponent.
public static <C extends MonoidElem<C>> C power(MonoidFactory<C> fac, C a, long n)
a
- element.n
- integer exponent.
public C power(C a, long n)
a
- element.n
- integer exponent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |