Commit Graph

683 Commits (74ed99c6cac1df5456f197cea88ca054353c59f1)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 5a4399e9b3 Removed openmp pragmas in bytecode.
This commit fixes #420, so that bytecode doesn't crash when Dynare is compiled with --enable-openmp flag.
2013-07-11 15:12:41 +02:00
Stéphane Adjemian (Charybdis) cb2228acad Merge branch 'master' into experimental-mjdgges-threshold 2013-06-12 17:27:25 +02:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Sébastien Villemot f1c8ec60c7 Remove various compilation warnings 2013-06-12 16:05:35 +02:00
Sébastien Villemot 555fc98673 Fix bug in gemv binding 2013-06-12 16:05:35 +02:00
Stéphane Adjemian (Charybdis) 7fc92c96d9 Fixed bug related to the test on the number of input arguments. 2013-06-12 10:21:27 +02:00
Stéphane Adjemian (Charybdis) b81fcbeeb1 Added an option for the threshold level of the 0/0 generalized eigenvalue test.
The option is passed in the fourth input argument of mjdgges. If the
mex is called with less than four arguments, then the threshold level
takes its previous (hardcoded) default value: 1e-6.
2013-06-12 09:46:32 +02:00
Ferhat Mihoubi b1da2f2b7d "slowc" option is now available to solve a simple equation in bytecode 2013-06-10 16:46:54 +02:00
Ferhat Mihoubi bdee6d14ec Fix the problems related to the initialization of ilu preconditioner using BiCGStab and also a bug in the BiCGStab in case of block (without bytecode) model options. 2013-06-08 17:16:20 +02:00
ferhat 4e7050baf9 Use ilu with type=ilutp instead of nofill
Contrary to luinc command ilu with nofill option doesn't not allow for partial
pivoting
2013-05-23 11:44:29 +02:00
Sébastien Villemot 2670be408e Bug fix in steady state solver 2013-04-19 18:01:19 +02:00
Sébastien Villemot 7495668ef2 Minor simplification and improvements 2013-04-19 18:01:19 +02:00
Sébastien Villemot e1f702f83a Various fixes to steady state computation in estimation DLL
Still not working… Valgrind detects unitialized values during the call to
hybridjs…
2013-04-18 18:28:34 +02:00
Stéphane Adjemian (Charybdis) 8eed899f92 Fixed bug. Compilation of bytecode was crashing with USE_OMP. 2013-04-18 11:20:35 +02:00
Houtan Bastani 47b53dbeea build system: osx fix for bytecode mex in octave 2013-04-17 17:45:28 +02:00
Sébastien Villemot 8dbf195422 Compatibility fix with GCC 4.8 2013-04-15 17:18:38 +02:00
Sébastien Villemot c8e59f1361 Do not put -lumfpack in LIBS, rather use a special variable for it 2013-03-29 15:30:31 +01:00
Sébastien Villemot 513ae741e3 Build system for MEX/Octave: use Octave's LDFLAGS in the configure script
This will facilitate the detection of UMFPACK under Windows
2013-03-29 15:07:58 +01:00
Sébastien Villemot 3025a14ed9 Adapt for removal of luinc in MATLAB R2013a 2013-03-25 12:05:56 +01:00
Sébastien Villemot 37592309fb Distribute dynumfpack.h in tarball 2013-03-24 09:42:45 +01:00
Sébastien Villemot 86db8d805c Add configure test for UMFPACK 2013-03-23 17:09:00 +01:00
Sébastien Villemot 1db892efc4 Fix compilation problems of bytecode with UMFPACK and MATLAB's libut 2013-03-23 13:02:07 +01:00
Ferhat Mihoubi 19032f4b07 Adds an umfpack definition file for matlab on windows 2013-03-22 16:38:34 +01:00
Ferhat Mihoubi 43a50dd395 - adds the kernel CUDA file for SparseMatrix 2013-03-22 16:36:30 +01:00
Ferhat Mihoubi dfa744fcb3 - adds new files: Evaluate.cc and Evaluate.hh to bytecode 2013-03-22 16:34:50 +01:00
Ferhat Mihoubi 2a51248832 Adds a block Kalman filter using GPU 2013-03-22 15:47:57 +01:00
Ferhat Mihoubi 03e487a092 Major update of bytecode:
- Iterative linear solvers using CUDA
 - interpreter.cc decomposed
2013-03-22 15:44:34 +01:00
Sébastien Villemot ba889e853c Preprocessor interface and documentation for endogenous_prior option
Closes #321
2013-03-18 11:12:49 +01:00
Sébastien Villemot f89edf476e Start refactoring of penalty handling
Handle all events that lead to a penalty through an exception.
Next steps:
- make all exceptions derive from a common class containing info code and
  penalty value
- catch these exceptions at the top-level, and construct the penalty-adjusted
  likelihood
2013-03-06 17:55:15 +01:00
Sébastien Villemot 82930ee29a Implementation of steady state computation in estim DLL, using the GSL
Does not seem very robust (fails on fs2000), need to investigate why.
2013-03-06 16:58:22 +01:00
Sébastien Villemot 871cbbe448 Construct the filename of the dynamic MEX file only at the deepest level
In the calling chain, only pass the basename of the MOD file.
2013-03-05 14:45:47 +01:00
Sébastien Villemot 325a2ea90e Remove unused field n_exog of DynamicModelDLL class 2013-03-05 13:00:57 +01:00
Sébastien Villemot 75fbd38524 Handle constant in Kalman filter
Previously, the filter was only working with options_.noconstant, i.e. when the
data are centered.
2013-02-07 18:34:17 +01:00
Sébastien Villemot be2764520a Estimation DLL: explicitly fail with option loglinear or observation trends 2013-02-07 17:00:48 +01:00
Sébastien Villemot 6fc94a12d0 C++ DecisionRules: support models with no static variables 2013-02-07 16:03:11 +01:00
Sébastien Villemot ea3d2cd1ed Include right header in definition of LogLikelihoodSubSample 2013-02-05 15:49:47 +01:00
Sébastien Villemot da046d378e Fix typos 2013-02-05 15:49:27 +01:00
Sébastien Villemot a06e3d9714 Clarify error message of logposterior DLL for purely backward/forward models 2013-02-05 14:57:38 +01:00
Sébastien Villemot 21055da526 Remove incorrect use of static keyword
This leads to a crash when the DLL is called several times in the same
Octave/MATLAB session.
2013-01-30 18:39:18 +01:00
Sébastien Villemot deb9ece36d Fix MOD-file name in Kalman tests 2013-01-30 16:44:10 +01:00
Sébastien Villemot f60acd4366 Relax criterion for decision rules test
Otherwise it fails with on Karaba
2013-01-30 16:43:35 +01:00
Sébastien Villemot b3acdc0836 Make various functions more generic, using templates
This was necessary to make some tests work again
2013-01-30 16:43:02 +01:00
Sébastien Villemot 02fee79fc7 Add some sanity checks 2013-01-30 16:27:13 +01:00
Sébastien Villemot 5beec53458 Remove unused function prototype 2013-01-30 16:26:56 +01:00
Sébastien Villemot c121aa14b1 Remove oo_.dr.{nstatic,npred,nboth,nfwrd,nspred,nsfwrd}
Replace them by equivalents in M_ (and an extra one: M_.dynamic).

IMPORTANT POINT: oo_.dr.npred used to count both purely backward and mixed/both
variables. This was the cause of lots of confusion. The new M_.npred only
counts purely backward variables.

We now have the following indentities:

M_.npred + M_.nboth + M_.nfwrd + M_.nstatic = M_.endo_nbr
M_.nspred = M_.npred + M_.nboth
M_.nsfwrd = M_.nfwrd + M_.nboth
M_.ndynamic = M_.npred + M_.nboth + M_.nfwrd
2012-11-16 20:05:13 +01:00
Sébastien Villemot 31a13db66a Remove duplicate information in M_.blocksMFS 2012-11-16 17:39:03 +01:00
Sébastien Villemot bc1872625b Fix typo in previous commit 2012-11-06 14:44:29 +01:00
Ferhat 50fd1a4c0d In the two boundaries solver, gives up the symbolic solver if a stable computation solution could not be found on the first third of the simulation period 2012-11-06 14:38:51 +01:00
Sébastien Villemot 18af0655a3 More spurious executable perms 2012-10-13 22:08:56 +02:00
Sébastien Villemot 3d39d77917 Remove spurious executable permissions 2012-10-13 16:10:01 +02:00
Sébastien Villemot c031b463ff Use my @dynare.org address 2012-10-01 16:41:18 +02:00
Sébastien Villemot 3e612e0211 Fix build system with Automake 1.12 2012-09-28 17:31:39 +02:00
Sébastien Villemot 5d5771a823 Another typo 2012-09-25 19:58:03 +02:00
Sébastien Villemot 6cfec3f6ad More CPPFLAGS_MATIO fun 2012-09-25 19:53:20 +02:00
Sébastien Villemot 08f7c61e89 Add missing CPPFLAGS_MATIO 2012-09-25 14:25:02 +02:00
Sébastien Villemot 3589c04f49 Add missing CPPFLAGS_MATIO 2012-09-21 07:29:11 +02:00
Sébastien Villemot 4d98c2007f Rename CFLAGS_MATIO to CPPFLAGS_MATIO 2012-09-20 22:53:47 +02:00
Houtan Bastani 4f54391e94 add --with-matio option to configure 2012-09-19 12:11:57 +02:00
Houtan Bastani fd66086c38 bug fix: configure output should be no for k-order if matlab is not present 2012-09-19 12:11:57 +02:00
Houtan Bastani e48f535004 bug fix: ms_sbvar requires matio under octave but configure output doesn't state that it's missing. 2012-09-19 12:11:57 +02:00
Houtan Bastani a54af094f2 bug fix: slicot configuration (allow path specification using --with-slicot flag) 2012-09-18 14:45:32 +02:00
Houtan Bastani 469a1d2c25 fix slicot configuration on OS X 2012-09-17 11:58:18 +02:00
Sébastien Villemot c07ffd8705 Merge branch 'slicot' 2012-09-13 11:11:46 +02:00
Sébastien Villemot 0332309647 Remove embedded SLICOT, rely on external binary 2012-09-13 11:08:42 +02:00
Sébastien Villemot 5f861cb0d8 Use MatIO in Dynare++ instead of the home-made engine 2012-08-23 18:31:07 +02:00
Sébastien Villemot 53709a3214 Ensure compatibility with matio 1.5
Closes: #275
2012-08-07 14:44:45 +02:00
Houtan Bastani e5dd2d31ec fix typo 2012-08-07 11:39:47 +02:00
Sébastien Villemot 2e65a9ab96 Provide a better implementation of linsolve for Octave
Closes: #273
2012-08-06 18:26:16 +02:00
Houtan Bastani 7c4b36695d change autoconf min version to match that of root config file 2012-08-02 16:17:08 +02:00
Michel Juillard f5f5ca1a83 removing printing used for debugging 2012-08-01 18:38:42 +02:00
Michel Juillard 2244af9c62 adding pruning option for 3rd order 2012-07-31 21:50:59 +02:00
Michel Juillard 84164dc57e adding possibility to pass derivative matrices to k_order_perturbation
MEX function
2012-07-07 21:21:28 +02:00
Michel Juillard 287b134884 k_order mex: added derivatives as members of KorderpDynare 2012-07-06 13:52:17 +02:00
Sébastien Villemot 83623723d9 Block kalman filter: enclose OpenMP statements in conditionals 2012-06-11 14:31:33 +02:00
Sébastien Villemot 4a9592a50c Fix LAPACK type error 2012-06-11 12:25:56 +02:00
Sébastien Villemot 91967eac6d Bump version numbers 2012-06-11 12:07:10 +02:00
Ferhat Mihoubi 2a8436aa44 Extends the block Kalman filter to the missing observations case (not called for the moment) 2012-06-11 10:39:25 +02:00
Sébastien Villemot 02efbd31a8 Convert files to Unix EOL 2012-06-08 19:10:19 +02:00
Sébastien Villemot c079ace8c3 Remove various compiler warnings 2012-06-08 19:06:03 +02:00
Sébastien Villemot 1f9cea669a Update copyright notices 2012-06-08 18:22:34 +02:00
Ferhat Mihoubi 6cb7a5f1e5 Corrects a bug in the arguments returned by bytecode 2012-06-06 16:32:01 +02:00
Ferhat Mihoubi 7dbd826d7e Code cleaning 2012-06-06 16:30:28 +02:00
Sébastien Villemot f36f76760a Fix bug where the nth derivative of 0^n evaluated to 0 instead of n!
(complement to commit cd0bc28e)
2012-05-21 18:34:10 +02:00
Michel Juillard e63c41184c bytecode: removing debuging message 2012-05-20 14:37:30 +02:00
Sébastien Villemot 615535ad88 Fix compilation errors with GCC 4.7 2012-05-08 16:10:10 +02:00
Sébastien Villemot ff4285d6fb matio is a requirement for ms-sbvar under Octave 2012-04-20 11:50:03 +02:00
Houtan Bastani 9576255ead Create new contrib folder & move ms-sbvar submodules there 2012-04-19 11:02:40 +02:00
Houtan Bastani b96c35a1a4 ms-sbvar: remove unused code 2012-04-13 15:56:25 +02:00
Houtan Bastani f402d59acf ms-sbvar: link to Matio library for Octave compilation 2012-04-13 15:54:48 +02:00
Houtan Bastani 402363bab2 MS-SBVAR: rewrite ms_variance_decomposition 2012-03-08 17:54:35 +01:00
Houtan Bastani 5f60f1bd27 MS-SBVAR: rewrite ms_forecast 2012-03-08 17:54:05 +01:00
Houtan Bastani 864e0b7c7e MS-SBVAR: rewrite ms_irf 2012-03-08 17:53:58 +01:00
Ferhat Mihoubi 3730957e9f Considers both 'inf' and 'nan' results in functions return and improves an error message 2012-03-06 11:09:46 +01:00
Ferhat Mihoubi 3072c6e611 Displays more details in case of singular system 2012-03-06 11:03:13 +01:00
Stéphane Adjemian (Charybdis) a2f3a53634 Parallelization of local_state_space_iteration_2 (used in non linear filters). 2012-03-05 23:11:49 +01:00
Sébastien Villemot c49d33e6ba Add local_state_space_iterations subdir to dist rule 2012-03-05 18:53:59 +01:00
Stéphane Adjemian (Charybdis) 40329e3e29 Added routine to compute one step ahead state space iteration (mex and m). The state space
equations are approximated at order two around the deterministic steady state.
2012-03-04 22:07:27 +01:00
Sébastien Villemot 89ca683ab9 Fix "make dist" following changes in estimation DLL 2012-02-24 12:21:33 +01:00
Michel Juillard da0beac147 updating calling sequence for estimation dll and introducing templates
when necessary
2012-02-23 18:39:41 +01:00
Ferhat eb567f5202 Cleaning the code: getting rid of unused variables 2012-02-17 10:59:39 +01:00