File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ FiniteDiff.GradientCache(
385385 c2 :: Union{Nothing,AbstractArray{<:Number}} ,
386386 c3 :: Union{Nothing,AbstractArray{<:Number}} ,
387387 fdtype :: Type{T1} = Val{:central },
388- returntype :: Type{T2} = eltype (df ),
388+ returntype :: Type{T2} = eltype (fx ),
389389 inplace :: Type{Val{T3}} = Val{true })
390390```
391391
@@ -400,7 +400,7 @@ into the differencing algorithm here.
400400## Jacobians
401401
402402Jacobians are for functions ` f!(fx,x) ` when using in-place ` finite_difference_jacobian! ` ,
403- and ` fx = f(x) ` when using out-of-place ` finite_difference_jacobain ` . The out-of-place
403+ and ` fx = f(x) ` when using out-of-place ` finite_difference_jacobian ` . The out-of-place
404404jacobian will return a similar type as ` jac_prototype ` if it is not a ` nothing ` . For non-square
405405Jacobians, a cache which specifies the vector ` fx ` is required.
406406
You can’t perform that action at this time.
0 commit comments