dynare/mex/sources/k_order_perturbation
sebastien fb8406ef0a USE_DLL option now works with MSVC + Added new options for Windows to 'dynare' command, to select the compiler: 'cygwin' and 'msvc' + Added the mexopts.bat for Cygwin in the SVN
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3223 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-11 14:46:21 +00:00
..
tests k_order_perturbation DLL: 2009-11-30 16:31:27 +00:00
Readme.txt Renamed kordepert to k_order_perturbation 2009-10-23 09:07:47 +00:00
dynamic_dll.cpp USE_DLL option now works with MSVC + Added new options for Windows to 'dynare' command, to select the compiler: 'cygwin' and 'msvc' + Added the mexopts.bat for Cygwin in the SVN 2009-12-11 14:46:21 +00:00
dynamic_dll.h 4.1 k_order_perturbation: simplifying dynamic_dll code 2009-12-06 14:10:43 +00:00
k_ord_dynare.cpp removed more leaks 2009-12-07 17:03:59 +00:00
k_ord_dynare.h k_order_perturbation DLL: 2009-11-30 16:31:27 +00:00
k_order_perturbation.cpp Cleared up DynareMxArrayToString in k_order_perturbation.cpp and changed #ifdef to #if defined() in dynamic_dll.cpp 2009-12-06 00:03:22 +00:00

Readme.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

k_order_perturbation project status

NOTE: The dll  (mexw32 or so) is called from new Matlab Dynare function dr1_k_order
derived from dr1, after set_state_space as:

[ysteady, ghx_u]=k_ord_dynare_perturbation(dr,task,M_,options_, oo_, ['.' mexext])

where last term is optional but it will default to .dll on windows and .so on linux.

dr1_k_order is called by amended resol.m:

elseif(options_.use_k_order==1)&& (check_flag == 0)
    [dr,info,M_,options_,oo_] = dr1_k_order(dr,check_flag,M_,options_,oo_);
else

and requirese options to be set

options_.use_k_order=1;

==================
Tests:

first_order.m is matlab emulation of Dynare++ c++ first_order.cpp for testing pruposes


==================
ToDO:
==================
1) amend <model>.m to use Dynamic_mexopts.bat

   mex -f Dynamic_mexopts.bat -O fs2000k_no_both_UR_dynamic.c

or amend preprocessor to make mex to export Dynamic() function as well as mexFunction() as the Dynamic_mexopts.bat does, e.g.:

set LINKFLAGS=/dll /export:Dynamic /export:%ENTRYPOINT% /MAP ....

2) make k_order_perturbation handle models  which have the "both" variables (i.e. variables that appear both as lag and as lead)