File tree 4 files changed +19
-8
lines changed
4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 150
150
f,
151
151
x::AbstractArray{<:Number},
152
152
cache::DerivativeCache{T1,T2,fdtype,returntype};
153
- [epsilon_factor])
153
+ relstep=default_relstep(fdtype, eltype(x)),
154
+ absstep=relstep,
155
+ dir=true)
154
156
155
157
Compute the derivative `df` of a scalar-valued map `f` at a collection of points `x`.
156
158
Original file line number Diff line number Diff line change 120
120
fdtype::Type{T1}=Val{:central},
121
121
returntype::Type{T2}=eltype(x),
122
122
inplace::Type{Val{T3}}=Val{true};
123
- [epsilon_factor])
123
+ relstep=default_relstep(fdtype, eltype(x)),
124
+ absstep=relstep,
125
+ dir=true)
124
126
125
127
Gradients are either a vector->scalar map `f(x)`, or a scalar->vector map `f(fx,x)` if `inplace=Val{true}` and `fx=f(x)` if `inplace=Val{false}`.
126
128
171
173
fdtype::Type{T1}=Val{:central},
172
174
returntype::Type{T2}=eltype(df),
173
175
inplace::Type{Val{T3}}=Val{true};
174
- [epsilon_factor])
176
+ relstep=default_relstep(fdtype, eltype(x)),
177
+ absstep=relstep)
175
178
176
179
Gradients are either a vector->scalar map `f(x)`, or a scalar->vector map `f(fx,x)` if `inplace=Val{true}` and `fx=f(x)` if `inplace=Val{false}`.
177
180
200
203
f,
201
204
x::AbstractArray{<:Number},
202
205
cache::GradientCache;
203
- [epsilon_factor])
206
+ relstep=default_relstep(fdtype, eltype(x)),
207
+ absstep=relstep
208
+ dir=true)
204
209
205
210
Gradients are either a vector->scalar map `f(x)`, or a scalar->vector map `f(fx,x)` if `inplace=Val{true}` and `fx=f(x)` if `inplace=Val{false}`.
206
211
Original file line number Diff line number Diff line change 152
152
absstep=relstep,
153
153
colorvec = 1:length(x),
154
154
sparsity = nothing,
155
- jac_prototype = nothing)
155
+ jac_prototype = nothing,
156
+ dir=true)
156
157
157
158
Cache-less.
158
159
"""
@@ -187,7 +188,8 @@ void_setindex!(args...) = (setindex!(args...); return)
187
188
absstep=relstep,
188
189
colorvec = cache.colorvec,
189
190
sparsity = cache.sparsity,
190
- jac_prototype = nothing)
191
+ jac_prototype = nothing,
192
+ dir=true)
191
193
192
194
Cached.
193
195
"""
399
401
relstep=default_relstep(fdtype, eltype(x)),
400
402
absstep=relstep,
401
403
colorvec = cache.colorvec,
402
- sparsity = cache.sparsity)
404
+ sparsity = cache.sparsity,
405
+ dir=true)
403
406
404
407
Cached.
405
408
"""
Original file line number Diff line number Diff line change 146
146
v::AbstractArray{<:Number},
147
147
cache::JVPCache;
148
148
relstep=default_relstep(fdtype, eltype(x)),
149
- absstep=relstep,)
149
+ absstep=relstep,
150
+ dir=true)
150
151
151
152
Cached.
152
153
"""
You can’t perform that action at this time.
0 commit comments