Interface DifferentiableMultivariateRealFunction

    • Method Detail

      • partialDerivative

        MultivariateRealFunction partialDerivative​(int k)
        Returns the partial derivative of the function with respect to a point coordinate.

        The partial derivative is defined with respect to point coordinate xk. If the partial derivatives with respect to all coordinates are needed, it may be more efficient to use the gradient() method which will compute them all at once.

        Parameters:
        k - index of the coordinate with respect to which the partial derivative is computed
        Returns:
        the partial derivative function with respect to kth point coordinate
      • gradient

        MultivariateVectorialFunction gradient()
        Returns the gradient function.

        If only one partial derivative with respect to a specific coordinate is needed, it may be more efficient to use the partialDerivative(int) method which will compute only the specified component.

        Returns:
        the gradient function