Skip to content

Commit 57cf6ab

Browse files
Merge pull request #47 from JuliaDiff/ox/len
correct docstring referecing D to reference len
2 parents 9ef0e0f + 710549c commit 57cf6ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ end
5151
"""
5252
jacobian(fdm, f, xs::Union{Real, AbstractArray{<:Real}}; len::Int=length(f(x)))
5353
54-
Approximate the Jacobian of `f` at `x` using `fdm`. `f(x)` must be a length `D` vector. If
55-
`D` is not provided, then `f(x)` is computed once to determine the output size.
54+
Approximate the Jacobian of `f` at `x` using `fdm`. `f(x)` must be a length `len` vector. If
55+
`len` is not provided, then `f(x)` is computed once to determine the output size.
5656
"""
5757
function jacobian(fdm, f, x::Union{T, AbstractArray{T}}; len::Int=length(f(x))) where {T <: Number}
5858
J = Matrix{float(T)}(undef, len, length(x))

0 commit comments

Comments
 (0)