Commit bf685333 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

dr.order_var is equivalent to M_.block_structure.variable_reordered

parent da0ee20b
......@@ -143,11 +143,7 @@ if isequal(options_.mode_compute,0) && isempty(options_.mode_file) && options_.m
end
end
for i=bayestopt_.smoother_saved_var_list'
if options_.block == 1
i1 = M_.block_structure.variable_reordered(bayestopt_.smoother_var_list(i));
else
i1 = dr.order_var(bayestopt_.smoother_var_list(i));
end;
i1 = dr.order_var(bayestopt_.smoother_var_list(i));
eval(['oo_.SmoothedVariables.' deblank(M_.endo_names(i1,:)) ' = atT(i,:)'';']);
eval(['oo_.FilteredVariables.' deblank(M_.endo_names(i1,:)) ' = squeeze(aK(1,i,:));']);
eval(['oo_.UpdatedVariables.' deblank(M_.endo_names(i1,:)) ' = updated_variables(i,:)'';']);
......@@ -941,11 +937,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha
end
end
for i=bayestopt_.smoother_saved_var_list'
if options_.block == 1
i1 = M_.block_structure.variable_reordered(bayestopt_.smoother_var_list(i));
else
i1 = dr.order_var(bayestopt_.smoother_var_list(i));
end;
i1 = dr.order_var(bayestopt_.smoother_var_list(i));
eval(['oo_.SmoothedVariables.' deblank(M_.endo_names(i1,:)) ' = atT(i,:)'';']);
eval(['oo_.FilteredVariables.' deblank(M_.endo_names(i1,:)) ' = squeeze(aK(1,i,:));']);
eval(['oo_.UpdatedVariables.' deblank(M_.endo_names(i1,:)) ...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment