Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
c6addc9d
Verified
Commit
c6addc9d
authored
3 years ago
by
Johannes Pfeifer
Committed by
Sébastien Villemot
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
stochastic_solvers.m: fix bug introduced in
57bbec1f
Rely on lead_lag_incidence instead of kstate to identify states (cherry picked from commit
17a58cce
)
parent
f63d58d9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6198
failed
3 years ago
Stage: build
Stage: test
Stage: pkg
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/stochastic_solvers.m
+5
-1
5 additions, 1 deletion
matlab/stochastic_solvers.m
with
5 additions
and
1 deletion
matlab/stochastic_solvers.m
+
5
−
1
View file @
c6addc9d
...
...
@@ -216,7 +216,11 @@ 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
;
if
M_
.
maximum_endo_lag
dr
.
state_var
=
find
(
M_
.
lead_lag_incidence
(
1
,:));
else
dr
.
state_var
=
[];
end
dr
.
ghx
(:,
k1
)
=
-
b
\
jacobia_
(:,
k2
);
if
M_
.
exo_nbr
dr
.
ghu
=
-
b
\
jacobia_
(:,
nz
+
1
:
end
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment