We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a1c78 commit 18e838eCopy full SHA for 18e838e
1 file changed
src/jvp.jl
@@ -130,9 +130,9 @@ The JVP is computed using the finite difference approximation:
130
where `h` is the step size and `v` is the direction vector.
131
132
# 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
+- Requires only `2` function evaluations (vs `O(n)` for full Jacobian)
+- Forward differences: 2 function evaluations, `O(h)` accuracy
+- Central differences: 2 function evaluations, `O(h²)` accuracy
136
- Particularly efficient when `v` is sparse or when only one directional derivative is needed
137
"""
138
function finite_difference_jvp(f, x, v,
0 commit comments