Commit Graph

15159 Commits (4e08aadafa37962a7cda89a6287c056a4f3d1442)

Author SHA1 Message Date
Sébastien Villemot 8dba4ec68c
Bytecode: minor fixes to debug mode 2022-06-24 12:53:19 +02:00
Sébastien Villemot 232d43d38b
Windows and macOS packages: bump to x13as version 1.1 build 58 2022-06-22 14:11:36 +02:00
Sébastien Villemot 8a0eb76b1b
Use operator""s to replace some calls to std::string constructor
By the way, remove other unnecessary calls to that constructor.
2022-06-22 12:51:08 +02:00
Sébastien Villemot 0107365f6a
Bytecode: stop using unsigned integers where signed ones avoid unnecessary casts 2022-06-20 17:52:01 +02:00
Sébastien Villemot 8bee62fa5e
Bytecode: directly use several enums inside instruction classes 2022-06-20 17:51:59 +02:00
Stéphane Adjemian (Charybdis) 584e661fff
Ensure that the ordering of the exogenous variables is correct...
in model inversion routines.
2022-06-17 17:48:00 +02:00
Stéphane Adjemian (Charybdis) f19ab66bab
Fix precision issue.
Introduced in patch 8b197bf71c which incidentally reduced the precision to six digits.
2022-06-17 16:48:35 +02:00
Sébastien Villemot a2d0ac3586
Bytecode: remove unused expression types 2022-06-17 16:32:59 +02:00
Sébastien Villemot 0719f749e7
Bytecode: remove unused opcodes 2022-06-17 16:32:50 +02:00
Sébastien Villemot 6dd871afbe
Preprocessor: build system update following header split 2022-06-16 20:42:26 +02:00
Sébastien Villemot 5ccd5f2613
Revert "More explicit message when the Dulmage-Mendelsohn decomposition returns a non-square block"
This reverts commit fa71d4712d.

Ref. #1851
2022-06-16 18:05:14 +02:00
Sébastien Villemot 3cc4aeb826
Preprocessor: split CodeInterpreter.hh into two headers 2022-06-16 18:05:00 +02:00
Sébastien Villemot 32cf926ef8
Macro-variables defined without a value are now set to “true”
They were previously set to 1.

Ref. preprocessor#43
2022-06-16 16:52:50 +02:00
Sébastien Villemot ec6ce95efd
Manual: fix return value of “in” macro-operator
It returns a boolean, not a logical.
2022-06-16 16:50:01 +02:00
Sébastien Villemot fa71d4712d
More explicit message when the Dulmage-Mendelsohn decomposition returns a non-square block
Closes: #1851
2022-06-16 15:53:45 +02:00
Sébastien Villemot 9323338323
Preprocessor: rename “parallel_slave_open_mode” option to “parallel_follower_open_mode”
Ref. preprocessor#86

Also make more terminology fixes in the manual (master/slave →
leader/follower), in complement to !1976.
2022-06-15 15:47:34 +02:00
Sébastien Villemot 1bb87538be
Merge branch 'doc_parallel' of git.dynare.org:JohannesPfeifer/dynare
Ref. !1976
2022-06-15 15:42:05 +02:00
Sébastien Villemot 06f665e231
Perfect foresight: LBJ now available under stack_solve_algo=1 (with/without block/bytecode)
Previously, LBJ was available:

– under stack_solve_algo=6 when neither block nor bytecode were present
– under stack_solve_algo=1 with either block or bytecode (but the documentation
  was not making it clear that it was LBJ)

This commit merges the two values for the option, and makes them
interchangeable. LBJ should now be invoked with stack_solve_algo=1 (but
stack_solve_algo=6 is kept for compatibility, and is a synonymous).
2022-06-15 15:06:33 +02:00
Sébastien Villemot 9cc5a5576e
Bytecode: some clean ups around checks for “stack_solve_algo” value 2022-06-15 14:28:41 +02:00
Sébastien Villemot 909aaac7c6
Preprocessor update
– Block decomposition: fix crash when a variable appears in an equation but has
  zero symbolic derivative
– Correctly clean up options list after a “pac_model” statement
– A few optimizations
2022-06-13 16:54:58 +02:00
Sébastien Villemot e6c35f205d
Windows package: bump dependencies
In particular, upgrade the embedded compiler to GCC 12.
2022-06-09 11:54:30 +02:00
Sébastien Villemot 041ec25738
Merge branch 'decomp' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2044
2022-06-08 18:35:32 +02:00
Sébastien Villemot 323c316409
Preprocessor: add provisions for Apple Silicon package 2022-06-08 18:35:27 +02:00
Johannes Pfeifer 1b4a4c8778 shock_decomposition.m: correctly pass initial date for plotting 2022-06-08 16:03:36 +02:00
Sébastien Villemot cd284a4e36
Merge branch 'dseries' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2043
2022-06-07 18:03:06 +02:00
Sébastien Villemot dfcfdda318
Enable more compiler warnings for C++ 2022-06-07 18:01:58 +02:00
Sébastien Villemot b7c70fd99e
Dynare++: add a few parentheses to make GCC happy with -Wparentheses
I’m not sure that the intent for the hash function was actually what is
currently in the code, but it’s not worth improving this given that we want to
get rid of Dynare++ and the performance impact is probably negligible.
2022-06-07 18:01:05 +02:00
Johannes Pfeifer 4fc644c322 dseries: expand documentation on loading Excel files 2022-06-07 17:59:46 +02:00
Sébastien Villemot 5db070e9dd
Bytecode: fix inconsistency in memory manager
The variable “gap” is compared to zero, so the intent probably was that it
could be negative. But size_t is an unsigned type. Rather use a signed type.
2022-06-07 17:26:45 +02:00
Sébastien Villemot 6ae86024ea
Dynare++: remove useless const qualifier 2022-06-07 17:25:25 +02:00
Sébastien Villemot 5423949047
Merge branch 'marco_fixes' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2042
2022-06-07 15:04:28 +02:00
Sébastien Villemot 594d847cba
Merge branch 'occ_checks' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2040
2022-06-07 15:03:30 +02:00
Johannes Pfeifer 852d1352da Expand documentation of markowitz criterion 2022-06-07 15:00:50 +02:00
Sébastien Villemot 83d2849567
Preprocessor: various simplifications and modernizations 2022-06-07 14:36:59 +02:00
Johannes Pfeifer 48eae1dd66 Manual: modernizes terminology on master/slave 2022-06-02 14:26:25 +02:00
Marco Ratto 3575afdf1d save info1 file only under debugging 2022-06-02 09:52:48 +02:00
Marco Ratto 9304b535f4 port to occbin smoother the same computational improvements done for standard one under smother_redux option. This also require to provide occbin reduced state-space matrices as output argument of missing_DiffuseKalmanSmootherH3_Z.m 2022-06-02 09:52:47 +02:00
Marco Ratto 12c4e03d7b bug fixes in retrieving the k-step ahead predictions and updated variables from occbin simulations 2022-06-02 09:52:47 +02:00
Marco Ratto 16bc2b3e5e plot_shock_decomposition: filter out other forbidden characters (parentheses and dot) for field name 2022-06-02 09:52:21 +02:00
Marco Ratto 61632ef28f marginal_density.m: make computation of log(det(sigma)) robust numerically 2022-06-02 09:51:12 +02:00
Marco Ratto 48ec0a60e8 Trap the case when Q is null matrix 2022-06-02 09:49:38 +02:00
Sébastien Villemot 924db129cb Merge branch 'tolx_doc' into 'master'
Document tolx option of steady

See merge request Dynare/dynare!2039
2022-05-31 15:47:49 +00:00
Johannes Pfeifer 8ac72590da PKF: document incompatibilities and throw proper errors if triggered 2022-05-31 17:40:03 +02:00
Johannes Pfeifer e24ff8e91f Document tolx option of steady 2022-05-31 14:37:11 +02:00
Sébastien Villemot 09f2541550 Merge branch 'PKF' into 'master'
Bug fixes for PKF

See merge request Dynare/dynare!2038
2022-05-31 08:00:22 +00:00
Sébastien Villemot 5f403e9f62
Merge branch 'solve1' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2035
2022-05-25 18:49:38 +02:00
Johannes Pfeifer c9fd266cbb solve1.m: trap zero Jacobian case 2022-05-25 14:31:12 +02:00
Johannes Pfeifer c91e1f895b trust_region.m: trap case where linear combination with weight 0 on infinite value returns NaN 2022-05-25 14:21:16 +02:00
Johannes Pfeifer cf548b467d dsge_likelihood.m: distinguish PKF problems with singularity in other KFs 2022-05-25 14:15:29 +02:00
Johannes Pfeifer c623696b4b kalman_update_algo_1.m: properly set array dimensions 2022-05-25 14:15:18 +02:00