Top Description Methods
org.apache.commons.math3.analysis

public Interface DifferentiableMultivariateFunction

extends MultivariateFunction
Annotations
@Deprecated

Deprecated

as of 3.1 replaced by org.apache.commons.math3.analysis.differentiation.MultivariateDifferentiableFunction

Extension of MultivariateFunction representing a differentiable multivariate real function.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public MultivariateVectorFunction

Returns:

the gradient function
gradient
()

Returns the gradient function.

public MultivariateFunction

Returns:

the partial derivative function with respect to kth point coordinate
partialDerivative
(int
index of the coordinate with respect to which the partial derivative is computed
k
)

Returns the partial derivative of the function with respect to a point coordinate.

Inherited from org.apache.commons.math3.analysis.MultivariateFunction:
value

Method Detail

gradientback to summary
public MultivariateVectorFunction 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:MultivariateVectorFunction

the gradient function

partialDerivativeback to summary
public MultivariateFunction 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:int

index of the coordinate with respect to which the partial derivative is computed

Returns:MultivariateFunction

the partial derivative function with respect to kth point coordinate