@@ -212,8 +212,8 @@ and a color vector and sparsity pattern, this can be accomplished using
212
212
` numauto_color_hessian ` or its in-place form ` numauto_color_hessian! ` .
213
213
214
214
``` julia
215
- H = numauto_color_hessian (fscalar , x, colorvec, sparsity)
216
- numauto_color_hessian! (H, fscalar , x, colorvec, sparsity)
215
+ H = numauto_color_hessian (f , x, colorvec, sparsity)
216
+ numauto_color_hessian! (H, f , x, colorvec, sparsity)
217
217
```
218
218
219
219
To avoid unnecessary allocations every time the Hessian is computed,
@@ -230,7 +230,7 @@ Alternatively, if you have your own custom gradient function `g!`, you can speci
230
230
it as an argument to ` ForwardColorHesCache ` :
231
231
232
232
``` julia
233
- hescache = ForwardColorHesCache (fscalar , x, colorvec, sparsity, g!)
233
+ hescache = ForwardColorHesCache (f , x, colorvec, sparsity, g!)
234
234
```
235
235
Note that any user-defined gradient needs to have the signature ` g!(G, x) ` ,
236
236
i.e. updating the gradient ` G ` in place.
@@ -356,4 +356,4 @@ ArrayInterfaceBlockBandedMatrices.jl to basically work with any functionality
356
356
for sparsity patterns. In the future, those two packages should just depend on
357
357
ArrayInterface.jl and remove this issue entirely from the user space.
358
358
359
- Additionally, GPUs need ArrayInterfaceGPUArrays for proper determination of the indexing.
359
+ Additionally, GPUs need ArrayInterfaceGPUArrays for proper determination of the indexing.
0 commit comments