From 472baf89871f2694895d41c9e97824991daea35f Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel.juillard@mjui.fr> Date: Thu, 1 Nov 2012 09:26:05 +0100 Subject: [PATCH] corrected bug introduced in recent commit (cherry-picked by hand from commit 2e59409df436cabd11bf7ef384bf65ddd3d2acc1) --- matlab/dynare_solve.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matlab/dynare_solve.m b/matlab/dynare_solve.m index d020df370..a6129fd82 100644 --- a/matlab/dynare_solve.m +++ b/matlab/dynare_solve.m @@ -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); -- GitLab