Commit Graph

248 Commits (d30ccf07f798b250e08a411496fd9969c62be5c6)

Author SHA1 Message Date
Sébastien Villemot 6ff7d4c56c
C++17: use structured bindings instead of std::tie 2019-09-11 16:06:35 +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 7e274d8234
Dynare++: remove useless call to std::move() that prevents copy elision 2019-06-25 11:14:01 +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 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 72ad793d85
Dynare++: improvements to comments
[skip ci]
2019-05-22 17:25:58 +02:00
Sébastien Villemot 4ae409574d
Dynare++: use std::exchange() in move constructors 2019-05-20 18:35:29 +02:00
Sébastien Villemot c7cd325e4e
Dynare++: improvements to comments 2019-05-10 18:41:38 +02:00
Houtan Bastani a29896a6d5
Undo change in cb5b756927, preferring const to constexpr 2019-05-08 15:26:17 +02:00
Houtan Bastani cb5b756927
sqrt is not a constexpr
see: http://open-std.org/JTC1/SC22/WG21/docs/papers/2017/p0533r0.pdf
2019-05-08 13:01:34 +02:00
Sébastien Villemot 0375dbe29b
Dynare++: improvements to comments 2019-05-06 18:44:49 +02:00
Sébastien Villemot 4d17c8b10d
Dynare++: move multithreading abstraction to the "utils" module 2019-05-02 12:38:56 +02:00
Sébastien Villemot b9f92b69be
Dynare++: replace some uses of std::vector by a lighter std::unique_ptr 2019-04-30 12:58:21 +02:00
Sébastien Villemot 64b568001c
Dynare++: fix bug introduced in 0b9b69f638 2019-04-29 18:31:57 +02:00
Sébastien Villemot 1ebd1d63fa
Dynare++: add test mod files to testsuite 2019-04-29 18:31:54 +02:00
Sébastien Villemot d3c4d0ae0f
Dynare++: use .mod extension for all test files (instead of .dyn) 2019-04-29 15:57:47 +02:00
Sébastien Villemot 36ab8d0093
Dynare++: rename old changelog 2019-04-26 14:44:36 +02:00
Sébastien Villemot 26778ea666
Dynare++: drop unmaintained R stuff 2019-04-26 14:44:36 +02:00
Sébastien Villemot 0b9b69f638
Dynare++: various simplifications 2019-04-24 17:47:15 +02:00
Sébastien Villemot 9a869560e6
Dynare++ main: various modernizations 2019-04-23 19:14:51 +02:00
Sébastien Villemot f5e2bfc30a
Ask GCC to warn about C-style casts (-Wold-style-cast)
Adapt the code accordingly.
2019-04-23 13:03:20 +02:00
Sébastien Villemot 3915299334
Dynare++ parser: various modernizations 2019-04-19 17:28:16 +02:00
Sébastien Villemot 5a261c1960
Dynare++: modernize Bison and Flex stuff 2019-04-17 18:52:12 +02:00
Sébastien Villemot e0280d067b
Dynare++: improvements to comments 2019-04-16 15:20:56 +02:00
Sébastien Villemot f953374dba
More Unicode copyright symbol 2019-04-16 14:34:05 +02:00
Sébastien Villemot c9bdc2c885
Dynare++: simplify methods for getting number of columns and rows of a matrix
Previously there were GeneralMatrix::numRows() and TwoDMatrix::nrows() for doing
the same thing (and same for columns and Const versions).

Merge these two into GeneralMatrix::nrows().
2019-04-16 12:44:02 +02:00
Sébastien Villemot 040c4f11a7
Dynare++: ensure that testsuite does not fail because of safety check
Safety check introduced in c10d8daf9.

Ref #217
2019-04-16 12:22:41 +02:00
Sébastien Villemot 57848930c6
Use Unicode copyright symbol (in UTF-8 encoding)
Do not use it in MATLAB source files, since unfortunately the MATLAB editor
does not support UTF-8.
2019-04-16 11:42:16 +02:00
Sébastien Villemot 9554065db7
Dynare++ standalone: fix bug when parsing approximation order
It was not possible to set a 2-digit order (i.e. ≥ 10).

Not sure that it was a real problem in practice, given the computational limits.
2019-04-15 18:33:51 +02:00
Sébastien Villemot c10d8daf9f
Dynare++: add safety check to avoid overflow in tensor indices
Ref #217
2019-04-15 18:32:59 +02:00
Sébastien Villemot 3cfb9ed6d2
Dynare++: fix typos 2019-04-15 18:32:51 +02:00
Sébastien Villemot 2169341639
Move source code of gensylv and dynare_simul_ MEX to the same place as other MEX 2019-04-15 17:34:01 +02:00
Sébastien Villemot a6d7baabea
Dynare++: improvements to comments 2019-04-12 18:26:30 +02:00
Sébastien Villemot 85f472c74b
Dynare++: new helpers for constructing {Const,}{TwoD,General}Matrix from mxArray* 2019-04-10 19:00:49 +02:00
Sébastien Villemot e67c172000
Dynare++: improvements to comments
[skip ci]
2019-04-05 18:39:47 +02:00
Sébastien Villemot 960deff5a9
Dynare++: improvements to comments 2019-04-01 18:42:35 +02:00
Sébastien Villemot fe9a691969
Dynare++: simplification of platform-specific routines for available memory 2019-04-01 18:42:35 +02:00
Sébastien Villemot a6ff8495cd
Dynare++: use portable C++11 primitive for detecting the number of logical processors 2019-04-01 18:42:35 +02:00
Houtan Bastani a93c6681c7
clang: can’t print non POD type through variadic function 2019-04-01 16:05:47 +02:00
Houtan Bastani 51d7508c7f
dynare++: _SC_AVPHYS_PAGES is not defined on macOS 2019-04-01 15:47:35 +02:00
Houtan Bastani 4120ce6730
dynare++: include needed on macOS 2019-04-01 14:54:20 +02:00
Sébastien Villemot 418cfa558b
Dynare++: fix compilation failure under macOS
We still need to properly define available memory.

[skip ci]
2019-04-01 11:22:04 +02:00
Sébastien Villemot 149fde1e74
Dynare++: detect Windows by testing for _WIN32 rather than __MINGW32__ 2019-04-01 11:16:04 +02:00
Sébastien Villemot 860e1e1c75
Dynare++: improve comments 2019-03-29 18:46:52 +01:00
Sébastien Villemot c41216819a
Dynare++: give more explicit names to some methods on quasi-triangular matrices 2019-03-29 15:28:26 +01:00