Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-12-16 17:17:34 +00:00
parent e6f1a53e60
commit 502e3e1df8
306 changed files with 25732 additions and 25746 deletions

View File

@ -318,4 +318,3 @@ function [fval,llik,cost_flag,ys,trend_coeff,info] = DsgeLikelihood_hh(xparam1,g
fval = (likelihood-lnprior);
options_.kalman_algo = kalman_algo;
llik=[-lnprior; lik(start:end)];

View File

@ -43,4 +43,3 @@ function ys1 = add_auxiliary_variables_to_steadystate(ys,aux_vars,fname, ...
end
end
end

View File

@ -82,4 +82,3 @@ function f=calib_obj(M_.Sigma_e,A,ghu1,ghx,ghu,targets,var_weights,iy,nar)
% 11/04/02 MJ generalized for correlations, autocorrelations and
% constraints on M_.Sigma_e
% 01/25/03 MJ targets std. dev. instead of variances

View File

@ -21,4 +21,3 @@ function y=dy_date(year,period)
y = M_.freq*(year-M_.start_date(1))+period-M_.start_date(2)+1;

View File

@ -135,4 +135,3 @@ function [resids, rJ,mult] = dyn_ramsey_static_(x,M_,options_,oo_,it_)
% rJ(209,210) = rJ(209,210)+1-1e-3;

View File

@ -76,4 +76,3 @@ function dynare_graph_init(figure_name,nplot,line_types,line_width)
dyn_graph.nr = min(ceil(nplot/dyn_graph.nc),options_.graphics.nrows);
end
dyn_graph.max_nplot = dyn_graph.nc*dyn_graph.nr;

View File

@ -85,4 +85,3 @@ function [yf,int_width]=forcst(dr,y0,horizon,var_list)
end
yf = yf(ivar,:);

View File

@ -103,4 +103,3 @@ function homotopy2(values, step_nbr)
steady_;
end
end

View File

@ -100,4 +100,3 @@ function estim_params_ = initialize_from_mode(fname,M_,estim_params_)
error([name 'doesn''t exist in this model'])
end

View File

@ -44,4 +44,3 @@ function [xparams,lpd,hessian] = ...
prior_shape, prior_hyperparameter_1, prior_hyperparameter_2, prior_inf_bound, prior_sup_bound);
lpd = -lpd;

View File

@ -404,4 +404,3 @@ function gamma_variates = best_1978_algorithm(a,b)
gamma_variates = X.*b;

View File

@ -1,4 +1,4 @@
function [alphahat,etahat,atilde, aK] = DiffuseKalmanSmoother1(T,R,Q,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf,data_index)
function [alphahat,etahat,atilde, aK] = missing_DiffuseKalmanSmoother1(T,R,Q,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf,data_index)
% function [alphahat,etahat,a, aK] = DiffuseKalmanSmoother1(T,R,Q,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
% Computes the diffuse kalman smoother without measurement error, in the case of a non-singular var-cov matrix

View File

@ -1,4 +1,4 @@
function [alphahat,etahat,atilde,P,aK,PK,d,decomp] = DiffuseKalmanSmoother1_Z(T,Z,R,Q,Pinf1,Pstar1,Y,pp,mm,smpl,data_index)
function [alphahat,etahat,atilde,P,aK,PK,d,decomp] = missing_DiffuseKalmanSmoother1_Z(T,Z,R,Q,Pinf1,Pstar1,Y,pp,mm,smpl,data_index)
% function [alphahat,etahat,a, aK] = DiffuseKalmanSmoother1(T,Z,R,Q,Pinf1,Pstar1,Y,pp,mm,smpl)
% Computes the diffuse kalman smoother without measurement error, in the case of a non-singular var-cov matrix

View File

@ -118,4 +118,3 @@ function dr=mult_elimination(varlist,M_, options_, oo_)
disp(' ')
end

View File

@ -227,4 +227,3 @@ function [Gamma_y,stationary_vars] = th_autocovariances(dr,ivar,M_,options_,node
else
warning on MATLAB:dividebyzero
end

View File

@ -1,4 +1,4 @@
function i = isopenmp()
function i = isopmenmp()
% This file is called only if the mex files are not compiled with the openmp flag (mutithreaded computations).
% Copyright (C) 2009 Dynare Team

View File

@ -61,4 +61,3 @@ function [A,B] = transition_matrix(dr, varargin)
A(i1,i0(j))=eye(n1);
i0 = i1;
end