Skip to content

Commit

Permalink
Add adaptive function bound computation (#17)
Browse files Browse the repository at this point in the history
* Add adaptive function bound computation

This introduces a type-based approach that works slightly differently
than the current API. Upon construction of a `FDMethod` subtype, the
order of the method and the order of the derivative are checked for
agreement, and the grid and coefficients are computed and stored.
Instances of the types are callable, and doing so produces the value of
the derivative. It works recursively when adaptively computing the
bound, which results in a better step size and thus a (hopefully) more
robust estimate of the derivative.

* WIP: Add more things

* WIP: Store computational history in a History object

* Restructure to use the new API, add deprecations

This change consistutes a near rewrite of method handling.

* Add a max_step parameter to cap the step size

If it's too big, Bad Things can happen. See e.g. the added test.

* Pass max_step during adaptive steps as well
  • Loading branch information
ararslan authored and wesselb committed May 29, 2019
1 parent 1d6f656 commit e40ed35
Show file tree
Hide file tree
Showing 2 changed files with 340 additions and 150 deletions.
Loading

0 comments on commit e40ed35

Please sign in to comment.