Commit Graph

11707 Commits (4030169db9ad5a7bb80f818f30fae1076fa6d988)

Author SHA1 Message Date
Sébastien Villemot 4030169db9
k_order_perturbation MEX: number of threads is now configurable 2019-07-09 17:33:14 +02:00
Sébastien Villemot 5b6c3bb452
k_order_perturbation MEX: small simplification in handling of NameLists 2019-07-09 17:33:14 +02:00
Sébastien Villemot aaaa897a2a
k_order_perturbation MEX: improve input handling and sanitization 2019-07-09 17:33:05 +02:00
Sébastien Villemot f8af21819e
Simplify the interface to perfect_foresight_problem MEX 2019-07-09 14:33:17 +02:00
Sébastien Villemot 984c60acb9
Various improvements related to the MEX R2018a API
— Use MX_HAS_INTERLEAVED_COMPLEX for testing for the new API

— Use the typed access functions under the new API, with one exception: we do
  not use mxGetDoubles() instead of mxGetPr(), because it would just complexif
  the code without any value added

For more details, see:
https://fr.mathworks.com/help/matlab/matlab_external/upgrade-mex-files-to-use-interleaved-complex.html
2019-07-09 11:54:12 +02:00
Sébastien Villemot 5a4f706272
Preprocessor submodule update 2019-07-05 17:49:38 +02:00
Sébastien Villemot 2ad6b31d76
Option endogenous_terminal_period is only available for stack_solve_algo=0 2019-07-04 18:37:27 +02:00
Sébastien Villemot 29396b0cda
Improve comment about oo_.dr.kstate 2019-07-04 18:37:23 +02:00
Sébastien Villemot ca20cfe6f1
Update preprocessor submodule
[skip ci]
2019-07-04 15:53:38 +02:00
Sébastien Villemot febf248f17
Manual, macro-processor: fix explanation for interaction between brackets and colon notation
Ref preprocessor#6

[skip ci]
2019-07-03 17:45:23 +02:00
Sébastien Villemot 5d00a4756b
Manual, macro-processor: advertise “log” rather than “ln” 2019-07-03 17:35:47 +02:00
Sébastien Villemot 682eecf06e
Add “diff” and “flip” options to plot_shock_decomposition and initial_condition_decomposition
This is only the interface. The actual implementation and the documentation are
still missing.

Ref #1649

[skip ci]
2019-07-03 16:33:10 +02:00
Houtan Bastani 123049cf18
doc: add comment about brackets around array created from colon operator. closes preprocessor#6 2019-07-01 14:36:55 +02:00
Sébastien Villemot f45738c09e
local_state_space_iteration_2 MEX: fix error message 2019-06-28 17:49:02 +02:00
Sébastien Villemot 67a49fc67b
k-order MEX: fix incorrect variable name in comment 2019-06-28 15:24:30 +02:00
Sébastien Villemot ca1a1ae0f2
local_state_space_iterations_2 MEX: minor stylistic improvement 2019-06-27 17:34:10 +02:00
Sébastien Villemot 7d9b2a557b
perfect_foresight_problem MEX: number of threads is now configurable 2019-06-27 17:00:12 +02:00
Sébastien Villemot 0eab36e823
sparse_hessian_times_B_kronecker_C MEX: by default, use maximum parallelization 2019-06-27 14:34:09 +02:00
Sébastien Villemot 9557061fa3
Add new num_procs MEX file for getting number of available processing units 2019-06-27 14:34:09 +02:00
Houtan Bastani f2b61b3e9e
submodule update: preprocessor; doc: introduce comprehensions 2019-06-26 15:09:55 +02:00
Houtan Bastani 8745880bde
doc: small changes 2019-06-26 11:01:39 +02:00
Sébastien Villemot e96f180c50
Implement mxIsScalar() for MATLAB < R2015a (8.5) 2019-06-25 20:31:13 +02:00
Sébastien Villemot 7c39b12b7b
Always compile MEX files with OpenMP (when they can take advantage of it)
As a consequence, remove the --enable-openmp option of the configure script.
2019-06-25 17:26:17 +02:00
Sébastien Villemot 82cef48eb4
A_times_B_kronecker_C MEX: remove the OpenMP codepath
Testing shows that it is slower than the BLAS path.
2019-06-25 17:26:14 +02:00
Sébastien Villemot c6a09a65e9
kronecker MEX: improve comments using UTF-8 2019-06-25 14:34:18 +02:00
Sébastien Villemot 7347554db5
perfect_foresight_problem MEX: fix compilation under Windows 2019-06-25 11:14:01 +02:00
Sébastien Villemot 7e274d8234
Dynare++: remove useless call to std::move() that prevents copy elision 2019-06-25 11:14:01 +02:00
Houtan Bastani cb0e84a2c4
submodule update: preprocessor 2019-06-25 10:12:20 +02:00
Houtan Bastani 98c2152ec5
doc: update macro processor section following rewrite 2019-06-25 10:09:09 +02:00
Sébastien Villemot 5b591fac42
New perfect_foresight_problem MEX file
It constructs the stacked residuals and jacobian of the perfect foresight
problem.

It is an almost perfect replacement for the perfect_foresight_problem.m
routine, while being much more efficient.

Note however that the DLL never return complex numbers (it instead puts NaNs at
the place where there would have been complex). This may create problems for
some MOD files; the algorithms will need to be adapted to use a more
line-search method.
2019-06-24 17:53:59 +02:00
Houtan Bastani 69229b6b2a
submodule update: preprocessor 2019-06-24 11:16:21 +02:00
Houtan Bastani 42e8b55274
add macro test to file 2019-06-24 11:16:21 +02:00
Houtan Bastani ff5def8a00
doc: fix typo 2019-06-21 17:26:10 +02:00
Houtan Bastani b4d2239da2
submodule update: preprocessor: rework macroprocessor 2019-06-21 17:11:14 +02:00
Stéphane Adjemian (Charybdis) 52b8c56da2 Added the possibility to invert (nonlinear) static models. 2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) 3fa584737d Explicitly list input arguments.
Do not use varargin.
2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) a64be8ff96 Fixed bug.
Database was not updated with auxiliary variables.
2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) dc251f53f4 Use dprintf routine (in matlab/backward subfolder). 2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) b3af8c4a48 Added routine for simulating static models. 2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) b32eee740d Added new routine for disp(sprintf(...)). 2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) fec807ea17 Test if leaded variables exists when calling simul_backward_model routine. 2019-06-21 11:21:34 +02:00
Sébastien Villemot 8515c348c7
Windows: update NSIS installer for move of Dynare++ docs
See b7e6ac58b

[skip ci]
2019-06-21 10:45:23 +02:00
Sébastien Villemot cb44d96121
Revert "MATLAB testsuite: don’t use -batch for the time being on Linux and macOS"
It actually does not prevent crashes, see for example:
https://git.dynare.org/Dynare/dynare/-/jobs/4314

This reverts commit 3cf650a2dd.
2019-06-20 17:44:23 +02:00
Sébastien Villemot d69fadc362
Dynare++: improvements to comments 2019-06-19 17:35:01 +02:00
Sébastien Villemot b7e6ac58b3
Dynare++: move all documentation to the doc/ subdir 2019-06-19 17:35:01 +02:00
Sébastien Villemot 16e36e503a
Dynare++: unpack tarball where Sylvester test cases are stored 2019-06-19 17:34:30 +02:00
Sébastien Villemot 7cc4aad8b6
Dynare++: update copyright information
— Ondra Kamenik has agreed to the relicensing of utils and parser modules to
  GPL
— add DynareTeam’s copyright, since we have made a lot of modifications
— add proper copyright notices in all files
2019-06-19 15:02:41 +02:00
Sébastien Villemot f00526cfe4
Dynare++: rename old changelog for Sylvester module 2019-06-19 15:02:39 +02:00
Sébastien Villemot aedc9fb2e4
Bugfix: perfect_foresight_setup safety check does not correctly index M_.lead_lag_incidence 2019-06-18 17:01:06 +02:00
Sébastien Villemot ec05451d1a
Remove symmetric elements in 3rd model derivatives 2019-06-17 16:18:07 +02:00