You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / scipy / optimize / _differentiable_functions / VectorFunction

class

scipy.optimize._differentiable_functions:VectorFunction

source: /scipy/optimize/_differentiable_functions.py:525

Signature

class VectorFunction(fun, x0, jac, hess, finite_diff_rel_step = None, finite_diff_jac_sparsity = None, finite_diff_bounds = (-inf, inf), sparse_jacobian = None, workers = None)

Members

Summary

Vector function and its derivatives.

Extended Summary

This class defines a vector function F: R^n->R^m and methods for computing or approximating its first and second derivatives.

Notes

This class implements a memoization logic. There are methods fun, jac, hess` and corresponding attributes f, J and H. The following things should be considered:

  • Use only public methods fun, jac and hess.

  • After one of the methods is called, the corresponding attribute will be set. However, a subsequent call with a different argument of any of the methods may overwrite the attribute.

Aliases

  • scipy.optimize._constraints.VectorFunction