Commit Graph

416 Commits (90adfc591818b8a0fb9ca651f0ca77faa58dc625)

Author SHA1 Message Date
Ferhat Mihoubi bdfa881a96 Reorganization of error handling in bytecode 2010-11-25 16:11:05 +01:00
Stéphane Adjemian (Charybdis) 010c4c0c20 Fixed bug in kalman_steady_state.cc related to long integer and (mkl) lapack calls. Changed building system by adding -fdefault-integer-8 flag to gfortran when slicot is compiled on a 64-bits platform. 2010-11-25 14:35:46 +01:00
Sébastien Villemot 5a9615951c Kronecker DLL: fix minor issue (was creating a lot of warnings under Octave) 2010-11-24 19:12:03 +01:00
Sébastien Villemot 43f69d27e8 Kalman steady state DLL: minor fixes 2010-11-22 12:22:45 +01:00
Sébastien Villemot b8aae7bbf9 Fix underscoring problems with Fortran code 2010-11-22 12:22:22 +01:00
Sébastien Villemot 81342073c0 Build system: added kalman_steady_state DLL sources to dist file 2010-11-22 10:39:19 +01:00
Stéphane Adjemian (Charybdis) dfbbc415cd Merge remote branch 'origin/master' 2010-11-19 14:49:26 +01:00
Stéphane Adjemian (Charybdis) 160922a189 Added mex file for computing the fixed point of the riccati equation in the kalman filter.
The mex works with octave but not with matlab (lapack issue again ;-).
2010-11-19 14:39:54 +01:00
Sébastien Villemot b3ee886391 Build system: added libslicot to dist file 2010-11-19 09:22:00 +01:00
Stéphane Adjemian (Charybdis) d5b032c99f Moved test files for kronecker product mex files from ./mex/sources/kronecker/tests to ./tests/kronecker. 2010-11-18 16:01:21 +01:00
Sébastien Villemot 479b2be602 Build system: added missing PIC flag for Fortran code in Octave DLLs 2010-11-18 11:10:49 +01:00
Stéphane Adjemian (Charybdis) 382ab96cde Added the Slicot library (distributed under the GNU General Public Licence at www.slicot.org). This library provides routines
for the design and analysis of control systems. Adapted the building system to handle fortran 77 source files.
2010-11-18 10:11:27 +01:00
Stéphane Adjemian (Charybdis) 5c709e4733 Changed set_dynare_threads.m. The number of threads in parallelized mex files to be used if dynare is built with the openmp flag
(--with-openmp) is not passed by an environment variable anymore. The function set_dynare_threads changes the default value of the
number of threads (default is 1) in the options_.threads structure. Changed calls to sparse_hessian_times_B_kronecker_C and
A_times_B_kronecker_C dlls accordingly.
2010-11-15 13:06:39 +01:00
Sébastien Villemot 7fd77a87dd Added M2HTML to the build system 2010-11-08 13:08:15 +01:00
Sébastien Villemot dbe288e3ca Make sure "min" and "max" macros are never defined under Windows, this can create conflicts with "std::min" and "std::max" 2010-10-29 12:01:47 +02:00
Sébastien Villemot 48096db2ff Build system: add logMHMCMC DLL 2010-10-28 10:17:58 +02:00
Sébastien Villemot 036867765b logMHMCMCposterior: minor compatibility fix for Octave (the 3rd arg of mexPutVariable() is not marked "const" under Octave) 2010-10-28 10:17:38 +02:00
Sébastien Villemot 8d3d004105 logMHMCMCposterior: under Octave, do load/save MAT files, because the "mat.h" interface does not exist 2010-10-28 10:15:53 +02:00
Ferhat Mihoubi 1aceb504fd Check command is now compatible with block and bytecode options 2010-10-27 15:34:48 +02:00
Ferhat Mihoubi 36941dd704 - During an evaluation of the model with bytecode stores all Jacobian matrix (w.r. to endogenous of the current block, exogenous and endogenous from previous blocks) in M_block_structure.block(j) 2010-10-27 15:30:01 +02:00
Ferhat Mihoubi 7ea9d28afd - updates the third output argument when it is M_.block_structure.block 2010-10-27 15:30:01 +02:00
George Perendia f8815c8896 C++ Estimation DLL: Update to logMHMCMCposterior.cc mexFunction DLL driver: its call to close waitbar seems to cause crashes and it is for now left commented out and the waitbar neeeds to be closed manually or,
alternativelly, call dll with options_.console_mode=1
2010-10-26 18:31:32 +01:00
Ferhat Mihoubi 39718c8645 - extends steady algorithms to solve_algo=5, 6, 7 and 8 for a block decomposed model without bytcode
-  solve_algo is reordered =
   * 0: fsolve
   * 1: solve1
   * 2, 4: solve1 + block decomposition
   * 3: csolve
   * 5: bytecode own solver (use Gaussian elimination + sparse matrix)
   * 6: LU decomposition with UMFPack (method handling sparse matrix in Matlab)
   * 7: GMRES
   * 8: BiCGStab
2010-10-22 16:49:47 +02:00
Sébastien Villemot a2367e9ecb Build system: fixed typo introduced in 69fc0e320b 2010-10-22 11:50:16 +02:00
Ferhat Mihoubi 1a09426706 - Correction of several bugs with Octave
- Add wrapper needed to compute the steady-state using bytecode and solve_algo = 0, ..., 4
2010-10-22 10:09:07 +02:00
Sébastien Villemot cab8941c29 qzcomplex and ordschur oct-files:
- added embedded tests
- minor cosmetic changes
2010-10-21 15:58:24 +02:00
Sébastien Villemot 81823ad035 New oct-file for "ordschur": the diffuse filter now works under Octave 2010-10-21 15:43:13 +02:00
Sébastien Villemot 69fc0e320b New oct-file "qzcomplex" for bringing the complex QZ decomposition to Octave. Fixes issues with partial information under Octave. 2010-10-21 12:33:18 +02:00
George Perendia 9123e4e70c C++ Estimation DLL: Update of logMHMCMCposterior and auxiliary files: added progress bar and recovery from file and tied up few loose ends - still unstable ! 2010-10-14 23:31:25 +01:00
Ferhat Mihoubi 8f36437662 - Extends the algorithms compatible with bytecode to compute the steady-state (ticket #11). The new values for solve_algo are:
* 0: fsolve
   * 1: solve1
   * 2, 4: solve1 + block decomposition
   * 3: csolve
   * 5: LU decomposition with UMFPack (method handling sparse matrix in Matlab)
   * 6: GMRES
   * 7: BiCGStab
   * 8: bytecode own solver (use Gaussian elimination + sparse matrix)

- Bytecode can now evaluate a specific block instead of the overall blocks (new bytecode's option 'Block = block_number')
2010-10-11 19:21:32 +02:00
Ferhat Mihoubi 4b824ad8ed - extends the error messages in mex_interface (necessary to emulate the mex functions in a standalone mode for debugging purposes) 2010-10-11 18:09:31 +02:00
Ferhat Mihoubi f6835d1d61 - adds bytecode_debug.m m-file to save the global variables. Necessary to run bytecode in a standalone mode for debugging purposes. 2010-10-11 18:01:44 +02:00
Ferhat Mihoubi 9a0201b26a Minor corrections on ErrorHandling 2010-10-11 17:56:23 +02:00
Sébastien Villemot dbbe177ed6 Estimation DLL: fix bug related to number of rows of matrix of endogenous (nb_row_x was incorrectly initialized in dynamic C file) 2010-10-05 16:30:21 +02:00
Sébastien Villemot eea1bcc27c k-order DLL: fix bug related to number of rows of matrix of endogenous
(nb_row_x was incorrectly initialized in dynamic C file)
2010-10-05 15:28:15 +02:00
George Perendia d7e8870c18 C++ Estimation DLL: Adding draft logMHMCMCposterior.cc mexFile driver for the modified RandomWalkMetropolisHastings.cc and other related files inc. draft test random_walk_metropolis_hastings_core.m
Still missing functionality: Sliding progress bar, seed change and loading old, incomplete (failed) run files
2010-10-04 13:58:25 +01:00
Sébastien Villemot 1a27ed9f38 OpenMP support:
- removed build_matlab_multithread.m and isopenmp MEX file
- introduced a new option "--enable-openmp" in configure script
- when openmp support is compiled in, the default is still one thread; the user can set the number of threads with "set_dynare_threads(n)"
- closes #68
2010-09-27 15:56:19 +02:00
Sébastien Villemot 477652c6e9 Build system: removed obsolete build_matlab script 2010-09-27 15:51:32 +02:00
Sébastien Villemot 5a1caff861 Build system: fix for bug introduced in 5504811b1a 2010-09-27 14:18:39 +02:00
Sébastien Villemot 5504811b1a Removed obsolete Kalman filter code 2010-09-24 13:01:52 +02:00
Sébastien Villemot da1c031195 Build system: add new header for bytecode (see previous commit) 2010-09-24 12:59:46 +02:00
Ferhat Mihoubi df1b1e4ed0 - In bytecode, the MATLAB function "mexErrMsgTxt" has been replaced by an exception handling see ticket #137 2010-09-24 12:52:58 +02:00
Houtan Bastani e57056ad14 sparse_hessian_times_B_kronecker_C: remove instances of mexErrMsgTxt 2010-09-23 10:45:18 +02:00
Houtan Bastani ca24c92ed7 A_times_B_kronecker_C: remove instances of mexErrMsgTxt 2010-09-23 10:45:08 +02:00
Houtan Bastani 7b0d6da920 mjdgges: remove instances of mexErrMsgTxt 2010-09-23 10:44:59 +02:00
Houtan Bastani e32c8b1b76 k_order_perturbation: remove instances of mexErrMsgTxt and mexErrMsgIdAndTxt 2010-09-23 10:44:39 +02:00
Houtan Bastani 1eaee02729 logposterior: remove instances of mexErrMsgTxt 2010-09-23 10:44:22 +02:00
Houtan Bastani b512a43848 fix file mode 2010-09-23 10:44:10 +02:00
Houtan Bastani 1b05a5f276 SWZ: remove instances of mexErrMsgTxt 2010-09-23 10:43:58 +02:00
Houtan Bastani 6631f2d1d0 Macro used to clean up after encountering an error in a mex file (previously handled by mexErrMsgTxt) and helper m file 2010-09-23 10:43:16 +02:00