{ } Raw JSON

bundles / scipy 1.17.1 / scipy / optimize / _root_scalar / MemoizeDer

class

scipy.optimize._root_scalar:MemoizeDer

source: /scipy/optimize/_root_scalar.py :20

Signature

class   MemoizeDer ( fun )

Members

Summary

Decorator that caches the value and derivative(s) of function each time it is called.

Extended Summary

This is a simplistic memoizer that calls and caches a single value of f(x, *args). It assumes that args does not change between invocations. It supports the use case of a root-finder where args is fixed, x changes, and only rarely, if at all, does x assume the same value more than once.

Aliases

  • scipy.optimize._root_scalar.MemoizeDer