Removed warning.

time-shift
Stéphane Adjemian (Charybdis) 2020-03-11 12:47:23 +01:00
parent b4db697e0f
commit 2bc7944286
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,7 @@ end
function x = dogleg (r, b, d, delta)
% Get Gauss-Newton direction.
x = r \ b;
x = decomposition(r, 'CheckCondition', false) \ b;
xn = norm (d .* x);
if (xn > delta)
% GN is too big, get scaled gradient.
@ -218,3 +218,4 @@ if (xn > delta)
x = alpha * x + ((1-alpha) * min (snm, delta)) * s;
end
end