Differences between revisions 3 and 4
Revision 3 as of 2008-06-06 16:30:48
Size: 1049
Comment:
Revision 4 as of 2009-03-25 17:11:57
Size: 1049
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
 * Global variables removed from {{{<fname>_{static,dynamic}.{m,c}}}} in r1859. An extra argument ({{{params}}}) has been added to static file, and two extra arguments ({{{params}}} and {{{it_}}}) have been added to dynamic file. All calls to those functions from M-files have normally been updated. Code from Ferhat (in {{{ModelTree.cc}}} and in {{{simulate.cc}}}) should still work, but it makes a heavy use of global variables, and should be modified -- SébastienVillemot [[DateTime(2008-06-06T14:06:24Z)]]  * Global variables removed from {{{<fname>_{static,dynamic}.{m,c}}}} in r1859. An extra argument ({{{params}}}) has been added to static file, and two extra arguments ({{{params}}} and {{{it_}}}) have been added to dynamic file. All calls to those functions from M-files have normally been updated. Code from Ferhat (in {{{ModelTree.cc}}} and in {{{simulate.cc}}}) should still work, but it makes 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 file, and two extra arguments (params and it_) have been added to dynamic file. All calls to those functions from M-files have normally been updated. Code from Ferhat (in ModelTree.cc and in simulate.cc) should still work, but it makes a heavy use of global variables, and should be modified -- SébastienVillemot 2008-06-06 14:06:24

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