File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -355,8 +355,8 @@ function NLPModels.jth_hess_coord!(
355355 increment! (nlp, :neval_jhess )
356356 Hx = hessian (nlp. adbackend, x -> nlp. c (x)[j], x)
357357 k = 1
358- for j = 1 : nlp. meta. nvar
359- for i = j : nlp. meta. nvar
358+ for j = 1 : ( nlp. meta. nvar)
359+ for i = j: ( nlp. meta. nvar)
360360 vals[k] = Hx[i, j]
361361 k += 1
362362 end
Original file line number Diff line number Diff line change @@ -476,16 +476,16 @@ function NLPModels.jth_hess_coord!(
476476 nls:: ADNLSModel ,
477477 x:: AbstractVector ,
478478 j:: Integer ,
479- vals:: AbstractVector
479+ vals:: AbstractVector ,
480480)
481481 @lencheck nls. meta. nnzh vals
482482 @lencheck nls. meta. nvar x
483483 @rangecheck 1 nls. meta. ncon j
484484 increment! (nls, :neval_jhess )
485485 Hx = hessian (nls. adbackend, x -> nls. c (x)[j], x)
486486 k = 1
487- for j = 1 : nls. meta. nvar
488- for i = j : nls. meta. nvar
487+ for j = 1 : ( nls. meta. nvar)
488+ for i = j: ( nls. meta. nvar)
489489 vals[k] = Hx[i, j]
490490 k += 1
491491 end
@@ -498,7 +498,7 @@ function NLPModels.jth_hprod!(
498498 x:: AbstractVector ,
499499 v:: AbstractVector ,
500500 j:: Integer ,
501- Hv:: AbstractVector
501+ Hv:: AbstractVector ,
502502)
503503 @lencheck nls. meta. nvar x v Hv
504504 @rangecheck 1 nls. meta. ncon j
You can’t perform that action at this time.
0 commit comments