We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ef0e0f commit 710549cCopy full SHA for 710549c
1 file changed
src/grad.jl
@@ -51,8 +51,8 @@ end
51
"""
52
jacobian(fdm, f, xs::Union{Real, AbstractArray{<:Real}}; len::Int=length(f(x)))
53
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.
+Approximate the Jacobian of `f` at `x` using `fdm`. `f(x)` must be a length `len` vector. If
+`len` is not provided, then `f(x)` is computed once to determine the output size.
56
57
function jacobian(fdm, f, x::Union{T, AbstractArray{T}}; len::Int=length(f(x))) where {T <: Number}
58
J = Matrix{float(T)}(undef, len, length(x))
0 commit comments