Commit Graph

11691 Commits (7d9b2a557b4e0a019e326267421efbe791090409)

Author SHA1 Message Date
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
Sébastien Villemot 67e7323cf0
windows/README.txt: fix phrasing; remove link to obsolete Wiki
[skip ci]
2019-06-13 15:50:31 +02:00
Sébastien Villemot 11be47103b
Avoid dynamic linking against libwinpthread when using POSIX-threads MinGW 2019-06-12 18:01:42 +02:00
Sébastien Villemot f04e925ffd
windows/README.txt: the Windows snapshot is compiled against Dynare 5.1.0
[skip ci]
2019-06-12 15:08:49 +02:00
Sébastien Villemot 09b8397f44
Dynare++: improvements to comments (last batch!)
[skip ci]
2019-06-11 16:58:32 +02:00
Sébastien Villemot 7599bc1069
Dynare++: improve comments
[skip ci]
2019-06-05 18:17:43 +02:00
Sébastien Villemot 446a41315a
README: mention the --help option of configure
Ref #1644

[skip ci]
2019-05-22 17:35:49 +02:00
Sébastien Villemot 72ad793d85
Dynare++: improvements to comments
[skip ci]
2019-05-22 17:25:58 +02:00
Sébastien Villemot 27add4ec52
README: add note about using M-file replacements for missing MEX files 2019-05-22 14:47:34 +02:00
Sébastien Villemot f15cd1319f
README: misc improvements
In particular, update explanations about 32- vs 64-bit to include also Octave.
2019-05-22 14:41:31 +02:00
Sébastien Villemot a5c8ab3dbf
Fix path to Windows MEX files with recent MATLAB 2019-05-21 17:28:18 +02:00
Sébastien Villemot 1d22536bc5
Add back workaround for MKL with DGGES and VSL
The workaround was removed in de159c0480, but it
is still needed for MATLAB R2009b.
2019-05-21 17:28:11 +02:00
Sébastien Villemot e79c618f38
No longer automatically add M-file substitutes for missing MEX files
However, keep the substitutes under matlab/missing/mex/, so that they can be
manually added should the need arise.
2019-05-21 12:37:35 +02:00
Sébastien Villemot e872f08cc5
Improve display of preprocessor arguments under Octave 2019-05-20 18:53:51 +02:00
Sébastien Villemot 4ae409574d
Dynare++: use std::exchange() in move constructors 2019-05-20 18:35:29 +02:00
Sébastien Villemot c8e8f04a56
Add a replacement for strjoin (missing in MATLAB < R2013a)
As a consequence, revert commits 2e1f189724 and
5d05adeab6.
2019-05-20 12:47:41 +02:00
Sébastien Villemot 0461fda782 Merge branch 'processor_nbr' into 'master'
fix finding CPU's number when larger than 9

See merge request Dynare/dynare!1651
2019-05-20 09:57:10 +00:00