Commit Graph

175 Commits (2f13d6610d6842adc4a4b448eb45ebd4223967e6)

Author SHA1 Message Date
Johannes Pfeifer b07adee2d9 Add missing path to dynare_config.m 2020-02-12 13:13:31 +01:00
Sébastien Villemot 048564c97b
MATLAB compatibility fix: R2014a is 8.3, not 8.4 2020-01-16 16:54:47 +01:00
Sébastien Villemot 4e314a529b
Bump minimal required Octave version to 4.4 2020-01-06 18:29:47 +01:00
Sébastien Villemot 49dc997073
Global reindentation of MATLAB code (excluding submodules)
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Sébastien Villemot 1ac7344e42
Rollback introduction of +get and +set folders
Under Octave, having namespaces called “get” and “set” overshadows the builtin
functions with the same names, which are needed for graphics manipulation.

Therefore we go back to the initial function naming scheme, but moving all
those functions under an “accessors” subdirectory.

Among other things, this is a revert of
e4134ab59b and
c5e86fcb59.

Ref. !1655, !1686
2019-12-19 17:20:38 +01:00
Dóra Kocsis 4c49eddb97 Add fallback implementation for contains and splitlines functions. 2019-11-13 13:05:28 +01:00
Houtan Bastani 53ce6222c2
remove unused variable in dynare_config 2019-09-05 11:48:19 +02:00
Sébastien Villemot e79c618f38
No longer automatically add M-file substitutes for missing MEX files
However, keep the substitutes under matlab/missing/mex/, so that they can be
manually added should the need arise.
2019-05-21 12:37:35 +02:00
Sébastien Villemot c8e8f04a56
Add a replacement for strjoin (missing in MATLAB < R2013a)
As a consequence, revert commits 2e1f189724 and
5d05adeab6.
2019-05-20 12:47:41 +02:00
Sébastien Villemot e48177543b
intersect(…, 'stable') was introduced in MATLAB R2013a
Re-use the existing Octave replacement by making it MATLAB-compatible.
2019-03-26 18:53:51 +01:00
Sébastien Villemot d6c449ea70
narginchk was introduced in MATLAB R2011b 2019-03-26 18:53:51 +01:00
Sébastien Villemot 04323301a5
isdiag was introduced in MATLAB R2014a
Provide a replacement by reusing a similar function that was under
matlab/general/utilities/.
2019-03-26 16:50:06 +01:00
Sébastien Villemot d4217c02b0
Provisions for Octave 5 2019-02-25 15:28:24 +01:00
Sébastien Villemot 870d75857c
Simplification for missing nanmean
Handle it as other functions from the Statistics toolbox
2019-02-25 15:28:23 +01:00
Sébastien Villemot 1f84bc051d
Under Octave, the "statistics" Forge package is now a requirement
The gamrnd fallback under matlab/missing/stats/ does not work under Octave
because the +gamrnd/ folder is not accessible (it has the same name as the
function, which does not work under Octave).

Instead of fixing this, rather make the statistics toolbox a requirement, since
anyways it is very easy to obtain under Octave.

Accordingly:
- do not try to run the unit tests of matlab/missing/stats/ under Octave
- merge the matlab/missing/stats-matlab/ into matlab/missing/stats/, since this
  directory is now MATLAB-only.

Also:
- move matlab/distributions/+gamrnd/ under matlab/missing/stats/ for
  consistency
- in the manual: remove obsolete link to Octave downloads on the Dynare
  website; update URL of Octave Forge

Closes #1638
2019-02-18 17:41:10 +01:00
Sébastien Villemot 0b1c465b38
Octave compatibility fix: intersect(..., 'stable')
The 'stable' option of intersect(), which keeps the element order of the first
argument, is not available on Octave. Provide a fallback implementation, and
adapt the code.
2019-02-15 18:43:19 +01:00
Stéphane Adjemia (Scylla) 219d2bb31b
Updated dseries submodule. 2019-02-10 00:02:14 +01:00
Stéphane Adjemia (Scylla) 5c75c30104
Fixed matlab warning.
[skip ci]
2019-02-04 16:26:48 +01:00
Stéphane Adjemia (Scylla) 2482eafdb7
Fixed dseries class initialization in Octave. 2019-01-23 15:49:55 +01:00
Stéphane Adjemian (Hermes) c7988c0717
Updated dseries submodule (moved dates class into dseries submodule). 2018-12-24 10:37:26 +01:00
Sébastien Villemot ce49cd95df
Add missing iscolumn and ismatrix for MATLAB < R2010b
Also fix a bug in isrow (it was not checking the rank of the array).
2018-11-13 16:59:27 +01:00
Sébastien Villemot 57f6183d2f Move some functions out of missing/stats/, since they are only needed for MATLAB 2018-06-06 13:02:42 +02:00
Sébastien Villemot 933ed45ead Octave 4.4 no longer includes statistics functions
Those have been moved to the statistics package. If that package is not there,
use a fallback.
2018-06-05 19:53:06 +02:00
Sébastien Villemot c7a57e5906 corrcoef is included in Octave 4.4 2018-06-05 17:14:41 +02:00
Sébastien Villemot 7b546ba696 Compatibility fix for MATLAB < R2010b (7.11) 2018-05-30 17:44:46 +02:00
Sébastien Villemot c180777818 Move check about Octave version to the same place as check for MATLAB 2018-05-16 17:12:48 +02:00
Stéphane Adjemian(Charybdis) afbac2e8eb Added strsplit routine in missing. 2018-05-16 16:41:43 +02:00
Sébastien Villemot e2c2f2d966 Remove fallbacks for ilu, linsolve and ordschur under Octave
These functions are all included in Octave 4.2.
2018-05-16 10:48:44 +02:00
Stéphane Adjemian(Charybdis) cee6dda44d Fixed check for octave version.
We should not issue a warning if version() is greater than supported_octave_version().
2018-03-24 22:48:45 +01:00
Stéphane Adjemian (Scylla) 7be8f10e0e Use cells of strings instead of char arrays. 2018-01-09 22:30:01 +01:00
Stéphane Adjemian (Scylla) 560a047a53 Moved isfile routine in missing.
This routine has been introduced in R2017b. Closes #1523.
2017-10-10 13:33:32 +02:00
houtanb 54d28d65da add new submodule: jsonlab 2017-06-22 16:34:52 +02:00
Stéphane Adjemian (Charybdis) ca7f734561 Updated dynare_config (wrt 214b534b25)
(cherry picked from commit 12733e94f3)
2017-06-14 00:04:28 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis) 76097a799f Added missing struct2array routine. 2017-03-22 15:20:13 +01:00
Marco Ratto a6f7e02d17 added utilities for optimal distinguishable colors. 2017-03-17 12:41:59 +01:00
Stéphane Adjemian (Charybdis) e71e89bb38 Added check on Octave version. 2017-02-08 13:07:24 +00:00
Johannes Pfeifer d6d517c4c9 Move MCMC diagnostics files to separated folder 2016-12-17 17:22:04 +01:00
Stéphane Adjemian (Hermes) 25243712ba Fixed bug on non linux platforms + Cosmetic changes.
The paths to mex files was wrong.
2016-06-17 22:02:34 +02:00
Stéphane Adjemian (Hermes) 1dea10d478 Updated dynare_config wrt #c7e848948156fe8febca22276a77c9586c565d87 2016-06-17 00:16:06 +02:00
Stéphane Adjemian (Hermes) d80f6d9a99 Minimize the number of calls to addpath.
These calls have a prohibitive cost...
2016-06-16 23:55:07 +02:00
Marco Ratto 22f51d1e75 moved autocorr to missing matlab econometrics toolbox [it is not in stats toolbox] 2016-05-19 14:34:09 +02:00
Houtan Bastani c386be3fb7 submodule update: reporting (remove strjoin) 2016-02-24 14:41:22 +01:00
Houtan Bastani f5043e11b0 update reporting path 2015-10-16 15:37:39 +02:00
Stéphane Adjemian (Charybdis) 23ff65d15a Updated dynare_config routine (initialization of the dseries and dates classes). 2015-06-24 19:02:42 +02:00
Stéphane Adjemian (Hermes) ccd4e40b49 Merge branch 'master' into rewrite-nonlinear-filters
Conflicts:
	.gitmodules
	tests/particle/dsge_base2.mod
2015-05-27 12:18:33 +02:00
Stéphane Adjemian (Charybdis) 0e1dd779b9 Check that Dynare's routines are not overridden by other routines.
By default Dynare will temporarly change Matlab/Octave's path. Added an
option to force Dynare to keep the current path. Also check that the user
did not put dynare/matlab directory with all the subfolders in the path.

With this patch, we do not need to prefix Dynare routines with dyn_ or
dynare_ anymore.
2015-03-30 15:04:59 +02:00
Sébastien Villemot 80f512b90b ilu function has been implemented in Octave 4.0. 2015-03-18 16:03:41 +01:00
Houtan Bastani 1a3d8d0b26 Provisions for MATLAB 8.5 (R2015a) 2015-03-16 14:44:06 +01:00