Skip to content
Snippets Groups Projects
Verified Commit 3c673c22 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

solve_model_for_online_filter.m: fix reduced form dimensions for oder=2 matrices at order=1

(cherry picked from commit f4003536)
parent 3137e757
No related branches found
No related tags found
No related merge requests found
......@@ -165,10 +165,12 @@ if nargout>4
ReducedForm.use_k_order_solver = true;
ReducedForm.dr = dr;
else
n_states=size(dr.ghx,2);
n_shocks=size(dr.ghu,2);
ReducedForm.use_k_order_solver = false;
ReducedForm.ghxx = zeros(size(restrict_variables_idx,1),size(dr.kstate,2));
ReducedForm.ghuu = zeros(size(restrict_variables_idx,1),size(dr.ghu,2));
ReducedForm.ghxu = zeros(size(restrict_variables_idx,1),size(dr.ghx,2));
ReducedForm.ghxx = zeros(size(restrict_variables_idx,1),n_states^2);
ReducedForm.ghuu = zeros(size(restrict_variables_idx,1),n_shocks^2);
ReducedForm.ghxu = zeros(size(restrict_variables_idx,1),n_states*n_shocks);
ReducedForm.constant = ReducedForm.steadystate;
end
ReducedForm.state_variables_steady_state = dr.ys(dr.order_var(state_variables_idx));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment