File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ The JVP is computed using the finite difference approximation:
130130where `h` is the step size and `v` is the direction vector.
131131
132132# Notes
133- - Requires only `O(1)` or `O(2) ` function evaluations (vs `O(n)` for full Jacobian)
134- - Forward differences: 1 extra function evaluation , `O(h)` accuracy
135- - Central differences: 2 extra function evaluations, `O(h²)` accuracy
133+ - Requires only `2 ` function evaluations (vs `O(n)` for full Jacobian)
134+ - Forward differences: 2 function evaluations , `O(h)` accuracy
135+ - Central differences: 2 function evaluations, `O(h²)` accuracy
136136- Particularly efficient when `v` is sparse or when only one directional derivative is needed
137137"""
138138function finite_difference_jvp (f, x, v,
You can’t perform that action at this time.
0 commit comments