Houtan Bastani
61b2be2a2c
preprocessor: add normcdf for MSVC. closes #1259
2016-10-14 16:11:44 +02:00
Houtan Bastani
2385b7b5c1
preprocessor: clean up writePowerDeriv code. it only writes C code, so no need for use_dll argument
2016-10-14 14:30:14 +02:00
Houtan Bastani
ce7a172c21
preprocessor: issue warning when param used with lead/lag. closes #976
2015-07-30 14:40:03 +02:00
Houtan Bastani
73caec3185
more explicit warning when dividing by zero in conversion to static model and when reading model #730
2014-10-03 17:04:07 +02:00
Sébastien Villemot
8882f809c3
Introduce a new abstract class for external function nodes.
...
This fixes the following bugs:
- 1st and 2nd ext fcn deriv nodes were incorrectly added to
DataTree::external_function_node_map, because of the chaining of
constructors.
- the following methods of FirstDerivExternalFunctionNode were not overloaded:
toStatic(), buildSimilarExternalFunctionNode()
- the following methods of SecondDerivExternalFunctionNode were not overloaded:
toStatic(), buildSimilarExternalFunctionNode(), compile(),
compileExternalFunctionOutput()
2014-03-13 12:12:17 +01:00
Sébastien Villemot
ca7fe60252
Cosmetic renaming for consistency between DataTree method names.
2014-03-11 18:56:48 +01:00
Sébastien Villemot
dab2dde8af
Small improvements to external functions code.
2014-02-24 17:27:34 +01:00
Sébastien Villemot
93777bd73e
Fix preprocessor crash when an pre-computed constant equals NaN or Inf
2012-10-01 16:22:38 +02:00
Sébastien Villemot
dbec61ba62
Preprocessor: handle underflows and overflows as MATLAB and Octave do
...
i.e. don't fail when they happen and instead return 0 or Inf
2012-07-12 12:46:22 +02:00
Houtan Bastani
b75d0e733f
Remove unused expectation syntax
2011-10-26 14:30:47 +02:00
Houtan Bastani
973105ace3
preprocessor: add absolute value and signum
2011-08-16 14:52:35 +02:00
Sébastien Villemot
47b828489b
Preprocessor: more explicit error message when users enter invalid floating
...
point numbers (like "1e-10000")
2011-02-16 11:08:40 +01:00
Sébastien Villemot
d264b7b2e3
Reindentation of the preprocessor
2011-02-04 16:25:38 +01:00
Sébastien Villemot
30a2b2b650
Fix derivatives of STEADY_STATE operator w.r.t. parameters (ticket #128 )
2011-01-13 18:08:26 +01:00
Houtan Bastani
7a26fe2ebd
extend domain of derivative of x^p to x=0 under certain conditions (see ticket 78)
2010-12-13 17:03:57 +01:00
Houtan Bastani
d206217fef
fixed bug that would force node sharing when two or more expectation operators had the same expression but different information sets
2010-12-08 12:29:47 +01:00
Sébastien Villemot
eaad0b1263
Preprocessor: various cleanups related to the signed vs non-negative numerical constants issues
2010-11-25 13:45:35 +01:00
Sébastien Villemot
615f2ae322
Histval block:
...
- fail when user tries to initialize a variable at a period which is not in the model, and make the error message explicit
- correctly handle exogenous variables in stochastic mode, which are also substituted with an aux var
- added test files
2010-10-20 14:47:03 +02:00
Houtan Bastani
a7fc3361ac
trend_var, growth_factor, deflator: stationarize a nonstationary model and test
2010-10-18 16:07:42 +02:00
Sébastien Villemot
2c10d03368
Preprocessor: rename "NodeID" in "expr_t"
2010-09-17 12:13:26 +02:00
Sébastien Villemot
c8fdd5d9d1
Preprocessor: uniformize typedef names (with a "_t" suffix)
2010-09-16 19:00:48 +02:00
Sébastien Villemot
2906c63f48
Preprocessor: removed useless version of DataTree::AddVariable()
2010-04-23 18:32:25 +02:00
Sébastien Villemot
5364cdea25
Preprocessor: removed useless version of DataTree::AddExternalFunction()
2010-04-23 18:32:19 +02:00
Sébastien Villemot
d8dcfa131e
Preprocessor: changed the prototype of DataTree::AddLocalVariable()
2010-04-23 18:32:14 +02:00
Houtan Bastani
9c2e06a091
Added erf as an internally supported function and updated manual.
2010-03-11 12:00:37 +01:00
Houtan Bastani
50258dae49
Added normpdf as an internally supported function and updated manual.
2010-03-11 10:16:40 +01:00
Houtan Bastani
52cbb40775
Added expression sharing for external functions
2010-03-03 11:43:22 +01:00
Sébastien Villemot
e24c9c5ad1
Preprocessor: minor cosmetic changes related to external functions
2010-02-23 19:08:54 +01:00
Houtan Bastani
9abc7563c1
Add support for external functions
2010-02-23 18:15:18 +01:00
Sébastien Villemot
e70d899c66
Preprocessor:
...
* in DataTree, new functions for testing if some opcode (unary, binary or trinary) is used somewhere in the tree
* removed DataTree::containsSteadyState(), rather use a call to the new utility function
2010-02-23 16:45:56 +01:00
houtanb
e616667f75
expectation conditional on a restricted information set
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3367 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-18 22:08:44 +00:00
sebastien
3aa8876538
Beautified preprocessor code (uncrustify + emacs + manual adjustments, in particular with templates in MacroValue)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3249 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:13:23 +00:00
sebastien
5568e622b8
preprocessor:
...
* fixed a bug with EXPECTATION operator: now handle model local variables
* substitute EXPECTATION operator even in deterministic models (for avoiding crashes, even if use of this operator doesn't make sense there)
* forbid the use of EXPECTATION and STEADY_STEATE outside model block
* minor implementation changes in EXPECTATION and STEADY_STATE operators
reference manual:
* documented EXPECTATION and STEADY_STATE operators
* added a note in write_latex_{static,dynamic}_model commands documentation about auxiliary variables and other model transformations
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3145 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-09 15:13:47 +00:00
houtanb
e45d3a4cb2
changed expectation operator from BinaryOpNode to UnaryOpNode
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3102 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-30 05:21:54 +00:00
sebastien
760085d6fe
preprocessor: clean-up workaround for acosh(), asinh(), atanh() on Win 64 platforms
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3101 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-29 17:16:10 +00:00
houtanb
0973dd9fa4
fixes global oo_ declaration for steady state operator as discussed on 14 Sep
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3020 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 18:36:07 +00:00
sebastien
2f1382fab5
preprocessor:
...
* In stochastic mode, now transforms the model by removing leads and lags greater or equal to 2 (creating auxiliary variables and equations in the process)
* Information about these variables is in structure M_.aux_vars
* Automatically add the necessary initialization for auxiliary vars after the initval block or load_params_and_steady_state
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3002 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-30 15:10:31 +00:00
houtanb
5591a412a8
added steady_state operator to preprocessor
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2916 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-10 20:09:16 +00:00
sebastien
331edd8d92
trunk preprocessor: cosmetic changes
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2614 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-20 15:54:19 +00:00
sebastien
90e8fbda8b
trunk preprocessor: restructuration of the code before adding derivatives w.r. to parameters (in particular, removed VariableTable, and replaced it by a system of derivation IDs)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2597 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-17 16:26:23 +00:00
sebastien
51378821aa
trunk preprocessor:
...
* enforce lag=0 for DataTree and StaticModel
* various minor and cosmetic changes
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2596 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-16 10:33:30 +00:00
sebastien
93e6dc4417
trunk preprocessor: removed the include/ directory
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2459 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-13 13:39:31 +00:00