sim1.m: provide missing function input to nested function
parent
e2f91abcaf
commit
632c0a3943
|
@ -99,7 +99,7 @@ for iter = 1:options.simul.maxit
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
if options.simul.robust_lin_solve
|
if options.simul.robust_lin_solve
|
||||||
dy = -lin_solve_robust(A, res, verbose);
|
dy = -lin_solve_robust(A, res, verbose, options);
|
||||||
else
|
else
|
||||||
dy = -lin_solve(A, res, verbose);
|
dy = -lin_solve(A, res, verbose);
|
||||||
end
|
end
|
||||||
|
@ -173,7 +173,7 @@ if relres > 1e-6 && verbose
|
||||||
fprintf('WARNING : Failed to find a solution to the linear system.\n');
|
fprintf('WARNING : Failed to find a solution to the linear system.\n');
|
||||||
end
|
end
|
||||||
|
|
||||||
function [ x, flag, relres ] = lin_solve_robust(A, b ,verbose)
|
function [ x, flag, relres ] = lin_solve_robust(A, b ,verbose, options)
|
||||||
if norm(b) < sqrt(eps) % then x = 0 is a solution
|
if norm(b) < sqrt(eps) % then x = 0 is a solution
|
||||||
x = 0;
|
x = 0;
|
||||||
flag = 0;
|
flag = 0;
|
||||||
|
|
Loading…
Reference in New Issue