Documentation of 'org.matheclipse.core.eval.util.ISequence' Java class
ISequence
org.matheclipse.core.eval.util

Interface ISequence

  • All Known Implementing Classes:
    AbstractSequence, ListSizeSequence, Sequence, SimpleSequence


    public interface ISequence
    Interface for sequence specifications. A sequence in the interval of integer numbers: [getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int getEnd()
      Get the end index for this sequence
      int[] getIndices()
      Get the generated sequence of indices for this ISequence.
      int getStart()
      Get the start index for this sequence
      int getStep()
      The step for calculating the next index in the sequence.
      void setListSize(int size)
      Sets the list size of the current used list in the generics library.
    • Method Detail

      • getEnd

        int getEnd()
        Get the end index for this sequence
        Returns:
        the endOffset of this sequence + 1;
      • getIndices

        int[] getIndices()
        Get the generated sequence of indices for this ISequence. Especially useful for unit tests to check the sequence implementation.
        Returns:
        [getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]
      • getStart

        int getStart()
        Get the start index for this sequence
        Returns:
        the start offset of this sequence;
      • getStep

        int getStep()
        The step for calculating the next index in the sequence.
        Returns:
        the step size of this sequence;
      • setListSize

        void setListSize(int size)
        Sets the list size of the current used list in the generics library. Sometimes this setting is used by special sequence implementations.
        Parameters:
        size -

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.