Documentation of 'edu.jas.ps.Coefficients' Java class
Coefficients
edu.jas.ps

Class Coefficients<C extends RingElem<C>>

  • Type Parameters:
    C - ring element type
    All Implemented Interfaces:
    java.io.Serializable


    public abstract class Coefficients<C extends RingElem<C>>
    extends java.lang.Object
    implements java.io.Serializable
    Abstract class for generating functions for coefficients of power series. Was an interface, now this class handles the caching itself.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.util.HashMap<java.lang.Integer,C> coeffCache
      Cache for already computed coefficients.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Coefficients()
      Public no arguments constructor.
      Coefficients(java.util.HashMap<java.lang.Integer,C> cache)
      Public constructor with pre-filled cache.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      C get(int index)
      Get cached coefficient or generate coefficient.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • coeffCache

        public final java.util.HashMap<java.lang.Integer,C extends RingElem<C>> coeffCache
        Cache for already computed coefficients.
    • Constructor Detail

      • Coefficients

        public Coefficients()
        Public no arguments constructor.
      • Coefficients

        public Coefficients(java.util.HashMap<java.lang.Integer,C> cache)
        Public constructor with pre-filled cache.
        Parameters:
        cache - pre-filled coefficient cache.
    • Method Detail

      • get

        public C get(int index)
        Get cached coefficient or generate coefficient.
        Parameters:
        index - of requested coefficient.
        Returns:
        coefficient at index.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.