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
Sébastien Villemot
39896d8d0a
Dynare++: drop unused codepaths
2019-03-29 15:26:04 +01:00
Sébastien Villemot
44b40bbf09
Dynare++: improvements to comments
...
[skip ci]
2019-03-28 18:59:34 +01:00
Sébastien Villemot
5958848145
Dynare++: improve comments using Unicode (first batch)
...
[skip ci]
2019-03-27 19:22:51 +01:00
Sébastien Villemot
449553e7b6
Dynare++: various improvements
2019-03-08 15:32:30 +01:00
Sébastien Villemot
4c11e9e9ec
Dynare++ kord and MEX: various modernizations and improvements
2019-03-07 19:46:15 +01:00
Sébastien Villemot
598f0193d5
Dynare++ kord library: make test failures fatal
...
Required an increase for the error tolerance of SW-like models tests.
By the way, decrease the tolerance for the small model.
2019-03-07 11:34:30 +01:00
Sébastien Villemot
a7de121b01
Dynare++ kord library: some equations were incorrectly omitted from residual error checking
2019-03-07 10:39:33 +01:00
Sébastien Villemot
14f85cf448
Dynare++ kord library: various modernizations and improvements
...
Note that I removed several #define whose purpose was to avoid typing "typename
ctraits<t>::…". Even though this tends to complicates the code, this is
probably safer, especially since the #define was capturing a free variable (t).
2019-03-06 18:43:04 +01:00
Sébastien Villemot
6d99b6d120
Dynare++ kord library: various modernizations and simplifications
2019-03-05 18:35:35 +01:00
Sébastien Villemot
7fd95a6b72
Dynare++ kord library: use modern pseudo-random number generators
2019-03-05 12:29:17 +01:00
Sébastien Villemot
29daae72b4
Dynare++: minor modernization
2019-03-01 18:40:46 +01:00
Sébastien Villemot
81d9b08050
Dynare++ tensor library: various modernizations/improvements
2019-02-27 19:07:01 +01:00
Sébastien Villemot
fc35f3a384
Dynare++: make more explicit the interface for extracting the Symmetry of an IntSequence
2019-02-27 17:01:37 +01:00
Sébastien Villemot
9751e6e199
Dynare++: simplify IntSequence by moving a special-purpose constructor into Symmetry
2019-02-27 15:43:22 +01:00
Sébastien Villemot
07ef21fdc7
Dynare++: more explicit interface for unfolding an IntSequence wrt a Symmetry
2019-02-27 15:29:06 +01:00
Sébastien Villemot
d86101327e
Dynare++: more explicit interface for inserting into a IntSequence
2019-02-27 14:39:47 +01:00
Sébastien Villemot
a062ea2b69
Dynare++ tensor library: various modernizations
2019-02-26 18:59:45 +01:00
Sébastien Villemot
1639f75a3c
Dynare++: improve interface to not-in-place matrix multiplications
2019-02-26 18:59:45 +01:00
Sébastien Villemot
e3967bda9a
Dynare++: improve interface to matrix transpose
2019-02-26 18:59:45 +01:00
Sébastien Villemot
16cc191298
Dynare++ tensor library: last batch of modernizations of testsuite
2019-02-26 18:59:45 +01:00
Sébastien Villemot
c44545bb18
Dynare++: add some comments
2019-02-26 12:43:04 +01:00
Sébastien Villemot
82e7f9250d
Dynare++: make the sparse tensors assignable
2019-02-22 17:44:07 +01:00
Sébastien Villemot
8751de896b
Dynare++: make tensor containers assignable
2019-02-22 16:54:00 +01:00
Sébastien Villemot
58bdee12c3
Dynare++ tensor library: refactor static stuff
...
- encapsulate it more clearly
- make it thread safe
- put back the Pascal triangle initialization stuff removed in 9512a32ad0
2019-02-21 19:00:50 +01:00