Skip to content

Commit

Permalink
Merge pull request #61 from DimitriAlston/master
Browse files Browse the repository at this point in the history
Update convex_increasing.jl
  • Loading branch information
DimitriAlston committed Jul 12, 2023
2 parents 3b0a5be + 2b43dc9 commit 50bc327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forward_operators/convex_increasing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for opMC in (:exp, :exp2, :exp10, :expm1)
midcc, cc_id = mid3(x.cc, x.cv, xU)
midcv, cv_id = mid3(x.cc, x.cv, xL)
concave = xUc
if xUc - xLc > 3.0*eps(Float64)
if del != 0
concave = (xLc*(xU - midcc) + xUc*(midcc - xL))/del
concave_grad = mid_grad(x.cc_grad, x.cv_grad, cc_id)*(xUc - xLc)/del
else
Expand Down

0 comments on commit 50bc327

Please sign in to comment.