bundles / scipy latest / scipy / optimize / _slsqp_py / approx_jacobian
function
scipy.optimize._slsqp_py:approx_jacobian
source: /scipy/optimize/_slsqp_py.py :36
Signature
def approx_jacobian ( x , func , epsilon , * args ) Summary
Approximate the Jacobian matrix of a callable function.
Parameters
x: array_likeThe state vector at which to compute the Jacobian matrix.
func: callable f(x,*args)The vector-valued function.
epsilon: floatThe perturbation used to determine the partial derivatives.
args: sequenceAdditional arguments passed to func.
Returns
: An array of dimensions ``(lenf, lenx)`` where ``lenf`` is the length: of the outputs of `func`, and ``lenx`` is the number of elements in: `x`.
Notes
The approximation is done using forward differences.
Aliases
-
scipy.optimize._slsqp_py.approx_jacobian