Skip to content
Snippets Groups Projects
Commit 472baf89 authored by MichelJuillard's avatar MichelJuillard
Browse files

corrected bug introduced in recent commit

(cherry-picked by hand from commit 2e59409d)
parent c71937a9
Branches
Tags
No related merge requests found
......@@ -37,6 +37,7 @@ global options_
tolf = options_.solve_tolf ;
info = 0;
nn = size(x,1);
% checking initial values
if jacobian_flag
......@@ -101,11 +102,8 @@ if options_.solve_algo == 0
info = 1;
end
elseif options_.solve_algo == 1
nn = size(x,1);
[x,info]=solve1(func,x,1:nn,1:nn,jacobian_flag,1,varargin{:});
elseif options_.solve_algo == 2 || options_.solve_algo == 4
nn = size(x,1) ;
if ~jacobian_flag
fjac = zeros(nn,nn) ;
dh = max(abs(x),options_.gstep(1)*ones(nn,1))*eps^(1/3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment