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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
5292ced4
Verified
Commit
5292ced4
authored
1 year ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
dyn_first_order_solver: typos in error message and comments
[skip ci]
parent
47590c92
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/stochastic_solver/dyn_first_order_solver.m
+7
-7
7 additions, 7 deletions
matlab/stochastic_solver/dyn_first_order_solver.m
with
7 additions
and
7 deletions
matlab/stochastic_solver/dyn_first_order_solver.m
+
7
−
7
View file @
5292ced4
...
...
@@ -21,7 +21,7 @@ function [dr, info] = dyn_first_order_solver(jacobia, M_, dr, options_, task)
% info=5 -> Blanchard and Kahn conditions are not satisfied: indeterminacy due to rank failure,
% info=7 -> One of the eigenvalues is close to 0/0 (infinity of complex solutions)
% Copyright © 2001-202
3
Dynare Team
% Copyright © 2001-202
4
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -136,18 +136,18 @@ else
aa
=
jacobia
;
end
A
=
aa
(:,
index_m
);
% Jacob
a
in matrix for lagged endogen
e
ous variables
B
(:,
cols_b
)
=
aa
(:,
index_c
);
% Jacobian matrix for contemporaneous endogen
e
ous variables
C
=
aa
(:,
index_p
);
% Jacob
a
in matrix for led endogen
e
ous variables
A
=
aa
(:,
index_m
);
% Jacobi
a
n matrix for lagged endogenous variables
B
(:,
cols_b
)
=
aa
(:,
index_c
);
% Jacobian matrix for contemporaneous endogenous variables
C
=
aa
(:,
index_p
);
% Jacobi
a
n matrix for led endogenous variables
info
=
0
;
if
task
~=
1
&&
(
options_
.
dr_cycle_reduction
||
options_
.
dr_logarithmic_reduction
)
if
n_current
<
M_
.
endo_nbr
if
options_
.
dr_cycle_reduction
error
([
'The cycle reduction algorithm
e
can
''
t be used when the '
...
error
([
'The cycle reduction algorithm can
''
t be used when the '
...
'coefficient matrix for current variables isn
''
t invertible'
])
elseif
options_
.
dr_logarithmic_reduction
error
([
'The logarithmic reduction algorithm
e
can
''
t be used when the '
...
error
([
'The logarithmic reduction algorithm can
''
t be used when the '
...
'coefficient matrix for current variables isn
''
t invertible'
])
end
end
...
...
@@ -160,7 +160,7 @@ if task ~= 1 && (options_.dr_cycle_reduction || options_.dr_logarithmic_reductio
[
ghx
,
info
]
=
logarithmic_reduction
(
C1
,
B1
,
A1
,
options_
.
dr_logarithmic_reduction_tol
,
options_
.
dr_logarithmic_reduction_maxiter
);
end
if
info
% cycle_reduction or logarithmic redution failed and set info
% cycle_reduction or logarithmic redu
c
tion failed and set info
return
end
ghx
=
ghx
(:,
index_m
);
...
...
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