Skip to content

Commit 16e4866

Browse files
matthieugomezpkofod
authored andcommitted
Fix the eye depreciation (#197)
1 parent add27c9 commit 16e4866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/newton.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function newton_(df::OnceDifferentiable,
105105
# FIXME: better selection for lambda, see Nocedal & Wright p. 289
106106
fjac2 = jacobian(df)'*jacobian(df)
107107
lambda = convert(T,1e6)*sqrt(n*eps())*norm(fjac2, 1)
108-
cache.p .= -(fjac2 + lambda*eye(n))\vec(cache.g)
108+
cache.p .= -(fjac2 + lambda * I)\vec(cache.g)
109109
else
110110
throw(e)
111111
end

0 commit comments

Comments
 (0)