Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 80f1bcc

Browse files
committed
No transpose
1 parent 04d164d commit 80f1bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nlsolve/trustRegion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function SciMLBase.__solve(prob::NonlinearProblem, alg::SimpleTrustRegion, args.
9797

9898
# Compute the ratio of the actual to predicted reduction.
9999
@bb= H × vec(δ)
100-
r = (fₖ₊₁ - fₖ) / (dot', g) + dot', Hδ) / T(2))
100+
r = (fₖ₊₁ - fₖ) / (dot(δ, g) + dot(δ, Hδ) / T(2))
101101

102102
# Update the trust region radius.
103103
if r < η₂

0 commit comments

Comments
 (0)