Sébastien Villemot
04c3fb3a31
Merge branch 'slice_record' of git.dynare.org:JohannesPfeifer/dynare
...
See merge request !1869
2021-06-09 14:41:03 +02:00
Sébastien Villemot
7ae114a392
Merge branch 'dynare_solve' of git.dynare.org:JohannesPfeifer/dynare
...
See merge request !1868
2021-06-09 14:39:46 +02:00
Johannes Pfeifer
f38a1edaee
posterior_sampler.m: trap case where record.ProposalCovariance is not filled (slice sampler)
2021-06-08 21:03:08 +02:00
Sébastien Villemot
a40a9b079c
sparse_hessian_times_B_kronecker_C MEX: bugfix relating to number of rows of B and C
...
In practice however, it seems that this bug never hits, because B and C always
have the same number of rows when the MEX is called.
2021-06-08 17:58:40 +02:00
Johannes Pfeifer
e546d686eb
dynare_solve.m: allow calling function directly
2021-06-04 21:24:53 +02:00
Sébastien Villemot
3bd3c78e0e
A_times_B_kronecker_C MEX: rewrite in Fortran
2021-06-04 12:58:39 +02:00
Sébastien Villemot
c4ca0ef0b2
Fortran MEX: remove useless return statements after calls to mexErrMsgTxt()
2021-06-04 12:58:39 +02:00
Sébastien Villemot
f90a8ab070
Fortran MEX: mark array pointers returned by MEX functions as contiguous
...
This can make a difference when the return value of those function is directly
passed to a BLAS/LAPACK function.
On the other hand, if the return value is first stored in a pointer variable,
then it seems necessary to explicitly say that this pointer is also contiguous.
2021-06-04 12:58:39 +02:00
Sébastien Villemot
dc2695a11f
mjdgges and block_trust_region MEX: optimise by marking some function arguments as contiguous
...
This avoids unnecessary array copies before calling BLAS/LAPACK functions.
2021-06-04 12:58:36 +02:00
Sébastien Villemot
3a2335975a
Fortran MEX: add missing “implicit none” in blas and lapack modules
2021-06-04 12:57:47 +02:00
Sébastien Villemot
2a1183e1fa
Fortran MEX: add -Wimplicit-interface to compiler flags
...
This warns about hard-to-detect bugs where a function is called with an
implicit interface, thus possibly having mismatches in the calling sequence.
2021-06-04 12:57:39 +02:00
Sébastien Villemot
45181cfd97
Fortran MEX: add interface for dgemm
2021-06-04 12:57:32 +02:00
Sébastien Villemot
765109ee01
Merge branch 'csolve' into 'master'
...
dynare_solve.m: have csolve honor selected options
See merge request Dynare/dynare!1867
2021-06-02 16:43:27 +00:00
Johannes Pfeifer
4e0f2bf695
dynare_solve.m: have csolve honor selected options
2021-06-02 16:21:16 +02:00
Sébastien Villemot
438ed7a48d
Merge branch 'tune_jscale' of git.dynare.org:JohannesPfeifer/dynare
...
Ref. !1865
2021-06-01 15:11:23 +02:00
Sébastien Villemot
05fcb0550f
Windows package: bump dependencies
2021-06-01 14:26:19 +02:00
Johannes Pfeifer
f4c0781f45
calibrate_mh_scale_parameter.m: Expand header
2021-06-01 11:34:39 +02:00
Johannes Pfeifer
f51a57374a
mh_tune_jscale: fix display of stepsize and provide warning if no updating can occur.
2021-06-01 11:23:07 +02:00
Sébastien Villemot
f5c5b05f12
The xls_sheet option now takes a quoted string as value
...
Recommend that syntax in the manual, but keep the old one for backward
compatibility.
Ref. preprocessor#67
2021-05-31 18:21:13 +02:00
Sébastien Villemot
c7d02a356e
Manual: harmonize and document usage of quoted strings
2021-05-31 18:21:13 +02:00
Sébastien Villemot
c7df5a6cb3
Preprocessor: add occbin syntax
...
Ref. #569 , !1863
2021-05-31 18:21:13 +02:00
Sébastien Villemot
95486a9ac0
Merge branch 'planner_objective_linear' into 'master'
...
evaluate_planner_objective.m: do not evaluate non-existing terms for linear models
Closes #1781
See merge request Dynare/dynare!1864
2021-05-31 13:30:18 +00:00
Johannes Pfeifer
fad86785da
evaluate_planner_objective.m: do not evaluate non-existing terms for linear models
...
Closes https://git.dynare.org/Dynare/dynare/-/issues/1781
2021-05-28 17:00:44 +02:00
Stéphane Adjemian (Charybdis)
27ee801a67
Add specialized version of sim1 for static models.
...
Also add an integration test and fix homotopy error message.
2021-05-28 14:11:34 +02:00
Stéphane Adjemian (Charybdis)
9867203f25
Reduce simulation length in integration test.
...
Also removed commented codes.
Closes #1857
2021-05-28 13:56:13 +02:00
MichelJuillard
bbfa145c58
manual: adding option lmmcp to extend_path command
2021-05-28 13:49:58 +02:00
Johannes Pfeifer
f78ac9f5ac
EP with MCP: add test case
2021-05-28 13:49:58 +02:00
MichelJuillard
5ab724d38f
Following a change in the calling sequence. Fixes #1789
2021-05-28 13:49:58 +02:00
Stéphane Adjemian
77612e6bb7
Merge branch 'particle' into 'master'
...
non_linear_dsge_likelihood.m: filter out explosive initial simulation
See merge request Dynare/dynare!1861
2021-05-28 11:42:24 +00:00
Sébastien Villemot
48cce9a3e9
Merge branch 'sim1_purely_backward' into 'master'
...
sim1_purely_backward.m: for purely static model, do not use past value for first iteration
See merge request Dynare/dynare!1862
2021-05-28 09:41:56 +00:00
Johannes Pfeifer
f97c138685
sim1_purely_backward.m: for purely static model, do not use past value for first iteration
...
Index 0 does not exist.
2021-05-27 22:37:45 +02:00
Johannes Pfeifer
cac6f82e34
non_linear_dsge_likelihood.m: filter out explosive initial simulation
2021-05-27 21:04:35 +02:00
Sébastien Villemot
abe8a05b43
Merge branch 'smoother_redux' into 'master'
...
Implement new option smoother_redux, to allow fast smoother for very large...
See merge request Dynare/dynare!1859
2021-05-27 16:33:21 +00:00
Sébastien Villemot
c4e0cd0565
Merge branch 'posterior_smoother' into 'master'
...
prior_posterior_statistics_core.m: filter out cases where model does not solve
See merge request Dynare/dynare!1860
2021-05-27 16:09:19 +00:00
Marco Ratto
5fa6265944
Implement new option smoother_redux, to allow fast smoother for very large models. It runs smoother only for state variables and computes the remaining ones ex-post
...
Contains improvements, in order to recover as much as possible static unobserved (filtered, smoothed, updated, k-step ahead), Variance, State_uncertainty, k-step ahead variances trying to map lagged states onto current ones using pinv(T). This has exceptions (namely lagged shocks which are ONLY used to recover static NON observed variables). this exception is also trapped.
For such extensions we can only recover smoothed variables starting from d+1. Variances CANNOT be recovered for such variables (the smoother gives ZERO.)
2021-05-27 16:59:15 +02:00
Johannes Pfeifer
7541b1b116
prior_draw.m: cosmetic fix
2021-05-27 16:46:40 +02:00
Johannes Pfeifer
5d1d5b8a85
prior_posterior_statistics_core.m: filter out cases where model does not solve
...
Relax qz_criterium by factor of 10, when taking posterior subdraws. Also makes sure `prior` option works as intended.
2021-05-27 16:46:28 +02:00
Sébastien Villemot
ae574fff78
Merge branch 'diagnostics' into 'master'
...
model_diagnostics.m: only provide message if imaginary component reaches tolerance level
See merge request Dynare/dynare!1855
2021-05-27 14:23:55 +00:00
Stéphane Adjemian (Charybdis)
3e7cd877d3
Fix error message consistently with 2743ca8fd
.
...
[skip ci]
2021-05-26 19:11:01 +02:00
Stéphane Adjemian (Charybdis)
2743ca8fdb
Fix workspace if dynare is called from a function.
2021-05-26 19:07:44 +02:00
Marcoo Ratto
1645f38269
Implement heteroskedastic filter and smoother
2021-05-26 18:45:16 +02:00
Sébastien Villemot
0d549bd87a
Preprocessor: streamline use_dll compilation under MATLAB
2021-05-25 18:57:40 +02:00
Sébastien Villemot
3bdb07d11e
Build system: remove -lstdc++ when linking MEX for MATLAB under macOS
...
It is unneeded.
2021-05-25 18:57:40 +02:00
Sébastien Villemot
ba3522a9ba
Merge branch 'compute_decision_rules' into 'master'
...
Use of the compute_decision_rules function to factorize code
See merge request Dynare/dynare!1856
2021-05-25 16:18:43 +00:00
Sébastien Villemot
c78e37290a
Merge branch 'ident_opt' into 'master'
...
identification: support optimal policy
See merge request Dynare/dynare!1852
2021-05-25 13:07:06 +00:00
Selma Malmberg
9c6cc04b0d
Use of the compute_decision_rules function to factorize code (Ref.#1173)
2021-05-20 11:36:29 +02:00
Johannes Pfeifer
7e72b52677
model_diagnostics.m: only provide message if imaginary component reaches tolerance level
2021-05-20 11:23:48 +02:00
Johannes Pfeifer
456dc86ad1
identification: support optimal policy
...
Related to https://git.dynare.org/Dynare/dynare/-/merge_requests/1837
2021-05-14 13:38:42 +02:00
Johannes Pfeifer
7d4b01883d
get_identification_jacobians.m: remove unnecessary reordering of equations
2021-05-14 13:35:01 +02:00
Sébastien Villemot
5e36b688ee
Merge branch 'forcst_bug' into 'master'
...
forcst.m: fix case with measurement error
See merge request Dynare/dynare!1850
2021-05-12 17:08:58 +00:00