Class FieldODEState<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldODEState

        public FieldODEState​(T time,
                             T[] primaryState)
        Simple constructor.

        Calling this constructor is equivalent to call FieldODEState(time, state, null).

        Parameters:
        time - time
        primaryState - primary state at time
      • FieldODEState

        public FieldODEState​(T time,
                             T[] primaryState,
                             T[][] secondaryState)
        Simple constructor.
        Parameters:
        time - time
        primaryState - primary state at time
        secondaryState - secondary state at time (may be null)
    • Method Detail

      • copy

        protected T[][] copy​(T[][] original)
        Copy a two-dimensions array.
        Parameters:
        original - original array (may be null)
        Returns:
        copied array or null if original array was null
      • getTime

        public T getTime()
        Get time.
        Returns:
        time
      • getNumberOfSecondaryStates

        public int getNumberOfSecondaryStates()
        Get the number of secondary states.
        Returns:
        number of secondary states.
      • getSecondaryStateDimension

        public int getSecondaryStateDimension​(int index)
        Get secondary state dimension.
        Parameters:
        index - index of the secondary set as returned by FieldExpandableODE.addSecondaryEquations(FieldSecondaryODE) (beware index 0 corresponds to primary state, secondary states start at 1)
        Returns:
        secondary state dimension
      • getSecondaryState

        public T[] getSecondaryState​(int index)
        Get secondary state at time.
        Parameters:
        index - index of the secondary set as returned by FieldExpandableODE.addSecondaryEquations(FieldSecondaryODE) (beware index 0 corresponds to primary state, secondary states start at 1)
        Returns:
        secondary state at time
      • getCompleteStateDimension

        public int getCompleteStateDimension()
        Return the dimension of the complete set of equations.

        The complete set of equations correspond to the primary set plus all secondary sets.

        Returns:
        dimension of the complete set of equations