Class FieldEquationsMapper<T extends RealFieldElement<T>>

    • Method Detail

      • getNumberOfEquations

        public int getNumberOfEquations()
        Get the number of equations mapped.
        Returns:
        number of equations mapped
      • getTotalDimension

        public int getTotalDimension()
        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
      • mapState

        public T[] mapState​(FieldODEState<T> state)
        Map a state to a complete flat array.
        Parameters:
        state - state to map
        Returns:
        flat array containing the mapped state, including primary and secondary components
      • mapDerivative

        public T[] mapDerivative​(FieldODEStateAndDerivative<T> state)
        Map a state derivative to a complete flat array.
        Parameters:
        state - state to map
        Returns:
        flat array containing the mapped state derivative, including primary and secondary components
      • insertEquationData

        public void insertEquationData​(int index,
                                       T[] equationData,
                                       T[] complete)
                                throws DimensionMismatchException
        Insert equation data into a complete state or derivative array.
        Parameters:
        index - index of the equation, must be between 0 included and getNumberOfEquations() (excluded)
        equationData - equation data to be inserted into the complete array
        complete - placeholder where to put equation data (only the part corresponding to the equation will be overwritten)
        Throws:
        DimensionMismatchException - if either array has not enough elements