Differences between revisions 1 and 2
Revision 1 as of 2008-03-23 13:26:54
Size: 533
Comment:
Revision 2 as of 2008-06-06 14:06:32
Size: 1048
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
We need to start with the functions most often called during estimation (DsgeLikelihood.m, dynare_resolve.m, resol1.m, dr1.m, <fname>_dynamic.m). We need to start with the functions most often called during estimation (Dsge``Likelihood.m, dynare_resolve.m, resol1.m, dr1.m, <fname>_dynamic.m).

 * Global variables removed from {{{<fname>_{static,dynamic}.{m,c}}}} in r1859. An extra argument ({{{params}}}) has been added to static files, an two extra arguments ({{{params}}} and {{{it_}}}) have been added to dynamic file. All calls to those functions from M-files should have been updated. Code from Ferhat (in {{{ModelTree.cc}}} and in {{{simulate.cc}}}) should still work, but they make a heavy use of global variables, and should be modified -- SébastienVillemot [[DateTime(2008-06-06T14:06:24Z)]]

Global variables

Samuel Hurtado has found that using global variables in Matlab is very inefficient (see http://www.cepremap.cnrs.fr/juillard/mambo/index.php?option=com_forum&Itemid=95&page=viewtopic&t=1609)

All the information that is currently stored in global variables M_, options_, oo_ , basestopt_ should be passed as argument instead of stored as global variables.

We need to start with the functions most often called during estimation (DsgeLikelihood.m, dynare_resolve.m, resol1.m, dr1.m, <fname>_dynamic.m).

  • Global variables removed from <fname>_{static,dynamic}.{m,c} in r1859. An extra argument (params) has been added to static files, an two extra arguments (params and it_) have been added to dynamic file. All calls to those functions from M-files should have been updated. Code from Ferhat (in ModelTree.cc and in simulate.cc) should still work, but they make a heavy use of global variables, and should be modified -- SébastienVillemot DateTime(2008-06-06T14:06:24Z)

DynareWiki: GlobalVariables (last edited 2009-03-25 17:11:57 by localhost)