Merge branch 'state_var_backwards' of git.dynare.org:JohannesPfeifer/dynare

Ref. !1928
pac-components
Sébastien Villemot 2021-09-17 16:57:16 +02:00
commit 7d4bb9ea44
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ if M_.maximum_endo_lead == 0
% backward models: simplified code exist only at order == 1
if local_order == 1
[k1,~,k2] = find(kstate(:,4));
dr.state_var = k2;
dr.ghx(:,k1) = -b\jacobia_(:,k2);
if M_.exo_nbr
dr.ghu = -b\jacobia_(:,nz+1:end);