Johannes Pfeifer
709ef9230f
get_the_name.m: do not pass full options structure as input
2023-12-07 12:11:38 +01:00
Johannes Pfeifer
0ba91259d8
GSA: cosmetic fixes to log_trans_.m and gsa_skewness.m
2023-12-07 12:11:38 +01:00
Johannes Pfeifer
dce0967deb
GSA: replace deprecated hist() syntax under MATLAB
2023-12-07 12:11:38 +01:00
Johannes Pfeifer
392721097c
Identification: various cosmetic fixes
2023-12-07 12:11:38 +01:00
Johannes Pfeifer
e68793030c
ls2003.mod: factorize tests
2023-12-07 12:11:38 +01:00
Johannes Pfeifer
bf6d88a472
Remove globals from identification and GSA
...
Incidentally cleans up files and fixes LaTeX output
2023-12-07 12:11:36 +01:00
Sébastien Villemot
6a58316a3e
MEX files: disable clang-tidy false positive for call to std::strcpy
2023-12-06 22:24:57 +01:00
Sébastien Villemot
91f2dcdfe1
MEX files: use “auto” when initializing with a template cast to avoid duplicating the type name
...
Automatically detected by clang-tidy with modernize-use-auto check.
2023-12-06 22:24:56 +01:00
Sébastien Villemot
de476ad5ac
MEX files: use a braced initializer list instead of repeating the return type
...
Automatically detected by clang-tidy with modernize-return-braced-init-list
check.
2023-12-06 22:24:55 +01:00
Sébastien Villemot
123f909b67
MEX files: use pass-by-value + std::move when possible in constructors
...
Automatically detected by clang-tidy with modernize-pass-by-value check.
2023-12-06 22:24:55 +01:00
Sébastien Villemot
fd9a89ab38
MEX files: use default member initialization when possible
...
Automatically detected by clang-tidy with modernize-use-default-member-init
check.
2023-12-06 22:24:55 +01:00
Sébastien Villemot
15b6e6e6b3
MEX files: no longer use “virtual” keyword when overriding a method
...
Automatically detected by clang-tidy with modernize-use-override check.
2023-12-06 22:24:55 +01:00
Sébastien Villemot
9d98811cfc
MEX files: use transparent functor for std::multiplies
...
Automatically detected by clang-tidy using modernize-use-transparent-functors
check.
2023-12-06 22:24:55 +01:00
Sébastien Villemot
8953007440
MEX files: remove unused variables or values
...
Automatically detected by clang-tidy using
clang-diagnostic-unused-but-set-variable, clang-analyzer-deadcode.DeadStores
and clang-diagnostic-unused-const-variable checks.
2023-12-06 22:24:55 +01:00
Sébastien Villemot
d82eecfd39
C++11 modernization: use std::array and std::vector instead of C arrays
...
Automatically detected by clang-tidy using modernize-avoid-c-arrays check.
2023-12-06 22:24:52 +01:00
Sébastien Villemot
3df4856259
Merge branch 'raftery_lewis_bug' of git.dynare.org:JohannesPfeifer/dynare
...
Ref. !2214
2023-12-05 18:53:10 +01:00
Sébastien Villemot
11c1f6175e
Add [[nodiscard]] attribute to various functions
...
Automatically detected using clang-tidy with modernize-use-nodiscard check.
2023-12-05 15:44:23 +01:00
Sébastien Villemot
7864370bfb
perfect_foresight_problem MEX: fix inclusion of dynmex.h
...
That header is needed from DynamicModelCaller.hh.
Issue detected by clang-tidy.
2023-12-04 18:21:18 +01:00
Sébastien Villemot
911437378c
Remove unused and unmaintained unit test for k-order
2023-12-04 18:21:18 +01:00
Sébastien Villemot
6f38dcd1d5
bytecode MEX: fix logical test
...
The test “solve_algo >= 6 || solve_algo <= 8” was always true.
Issue detected by clang-tidy using the
clang-diagnostic-tautological-overlap-compare check.
2023-12-04 18:21:13 +01:00
Sébastien Villemot
bc6840ff6f
MEX libkorder: make destructor of SparseTensor class virtual
...
That class is a base class, so it must have a virtual destructor to avoid
memory leaks.
Issue detected by clang-tidy with
clang-diagnostic-delete-non-abstract-non-virtual-dtor check.
2023-12-04 18:20:43 +01:00
Sébastien Villemot
aeec4494b0
MEX libkorder: fix use of moved-from object
...
Detected by clang-tidy using clang-analyzer-cplusplus.Move check.
2023-12-04 18:20:43 +01:00
Sébastien Villemot
857e5b00f5
C++ modernization: pass by value and use std::move when relevant
...
Automatically detected and fixed using clang-tidy with modernize-pass-by-value
check.
2023-12-04 18:20:43 +01:00
Sébastien Villemot
bd7703d160
C++ modernization: use a braced initializer list instead when relevant
...
Automatically detected and fixed using clang-tidy with
modernize-return-braced-init-list check.
2023-12-04 18:20:43 +01:00
Sébastien Villemot
a5445c52be
C++ modernization: more uses of auto keyword
...
Automatically detected and fixed using clang-tidy with modernize-use-auto
check.
2023-12-04 18:20:43 +01:00
Sébastien Villemot
403f20a7f3
C++ modernization: add [[nodiscard]] attribute to various functions
...
Automatically detected and fixed using clang-tidy with modernize-use-nodiscard
check.
2023-12-04 18:20:42 +01:00
Johannes Pfeifer
53f12e81fa
Raftery/Lewis: fix case with only one parameter
...
Dimension for max needs to be specified
2023-12-04 16:25:00 +01:00
Sébastien Villemot
bea87aafad
Manual: minor formatting improvements
...
[skip ci]
2023-12-04 16:22:24 +01:00
Johannes Pfeifer
526e6841b1
Sampling_Function_2.m: clean up and fix wrong logical conditions
2023-12-04 12:07:58 +01:00
Johannes Pfeifer
c21199a3e9
prior_draw.m: remove wrong note
2023-12-04 12:07:57 +01:00
Johannes Pfeifer
36a4ad0fbc
Fix Remove globals and clean up map_ident_.m and friends
2023-12-04 12:07:56 +01:00
Johannes Pfeifer
f218127220
GSA: remove globals from various routines
2023-12-04 12:07:46 +01:00
Stéphane Adjemian (Ryûk)
edaf938582
Add --log option to dcontrib command.
2023-11-30 21:55:35 +01:00
Stéphane Adjemian (Ryûk)
dadcd9a2bf
Dynare does not ship jsonlab anymore.
...
See 1d5a442fe5
.
2023-11-30 16:52:02 +01:00
Sébastien Villemot
c6a7801ba8
clang-format configuration: set “PackConstructorInitializers: NextLine”
2023-11-30 14:37:05 +01:00
Sébastien Villemot
7edf01a2a9
Manual: cosmetic change
...
[skip ci]
2023-11-29 21:13:51 +01:00
Sébastien Villemot
cb56dcc569
README.md: under Octave, the statistics package is not optional
...
[skip ci]
2023-11-29 21:13:48 +01:00
Sébastien Villemot
f0420fa219
CI: add job that checks formatting with clang-format
2023-11-29 19:02:41 +01:00
Sébastien Villemot
ed332e3ba1
MEX files: reformat C++ source code using clang-format 15
2023-11-29 19:00:51 +01:00
Sébastien Villemot
ca16f7f848
clang-format configuration: never collapse short functions on a single line
2023-11-29 18:19:31 +01:00
Sébastien Villemot
847f940f78
clang-format configuration: remove reference to a specific clang-format version
2023-11-29 13:12:54 +01:00
Johannes Pfeifer
d5f7fbe96a
redform_screen.m: remove globals
2023-11-28 21:11:03 +01:00
Johannes Pfeifer
d29228bb5f
dynare_sensitivity: clean up file
2023-11-28 21:11:03 +01:00
Johannes Pfeifer
152991864d
GSA: cleanup and removal of globals in filt_mc_.m
2023-11-28 21:11:03 +01:00
Johannes Pfeifer
f8a0a99683
dynare_sensitivity.m: add dollar signs for TeX output
2023-11-28 21:11:02 +01:00
Johannes Pfeifer
5060f246ea
GSA: Remove globals and clean up map_ident_.m and friends
2023-11-28 21:11:02 +01:00
Johannes Pfeifer
4199f57788
GSA scatter plots: clean up files and enable TeX-output
2023-11-28 21:11:02 +01:00
Johannes Pfeifer
94c1343671
identification_analysis.m: remove global inputs
2023-11-28 21:11:02 +01:00
Johannes Pfeifer
a80ead7d94
map_ident_.m: clean up and remove globals
2023-11-28 21:11:02 +01:00
Johannes Pfeifer
da438d5099
Clean up Morris_Measure_Groups.m
2023-11-28 21:11:01 +01:00