|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.ps.Coefficients<C>
C
- ring element typepublic abstract class Coefficients<C extends RingElem<C>>
Abstract class for generating functions for coefficients of power series. Was an interface, now this class handles the caching itself.
Field Summary | |
---|---|
java.util.HashMap<java.lang.Integer,C> |
coeffCache
Cache for already computed coefficients. |
Constructor Summary | |
---|---|
Coefficients()
Public no arguments constructor. |
|
Coefficients(java.util.HashMap<java.lang.Integer,C> cache)
Public constructor with pre-filled cache. |
Method Summary | |
---|---|
protected abstract C |
generate(int index)
Generate coefficient. |
C |
get(int index)
Get cached coefficient or generate coefficient. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.util.HashMap<java.lang.Integer,C extends RingElem<C>> coeffCache
Constructor Detail |
---|
public Coefficients()
public Coefficients(java.util.HashMap<java.lang.Integer,C> cache)
cache
- pre-filled coefficient cache.Method Detail |
---|
public C get(int index)
index
- of requested coefficient.
protected abstract C generate(int index)
index
- of requested coefficient.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |