sebastien
5437ff057a
trunk preprocessor: cosmetic changes
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2653 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-30 13:05:21 +00:00
sebastien
3a9b262af7
trunk preprocessor:
...
* removed obsolete output type CDynamicSparseDLL
* probably fixed a bug in BlockTriangular::Reduce_Blocks_and_type_determination
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2652 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-29 14:16:14 +00:00
sebastien
f19f36d9ac
trunk preprocessor: enforce impossibility of mixing deterministic and stochastic statements, even in Sparse/SparseDLL modes
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2649 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-29 11:35:44 +00:00
sebastien
d65978ff94
trunk preprocessor: in NumericalConstants
...
* fixed bug introduced in r2642 with NaN
* added a check to verify that the conversion to double succeeded (use strtod() instead of atof())
* store the double values in a vector
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2647 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-29 11:05:40 +00:00
sebastien
63c018a64f
trunk preprocessor:
...
* finished normalization algorithm
* added routine for computing the equations which are already in normalized form
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2645 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-28 17:11:48 +00:00
sebastien
d88a689876
trunk preprocessor: added method VariableNode::get_symb_id()
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2643 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-28 17:03:21 +00:00
sebastien
9179ebe4cf
trunk preprocessor: use assert() function at several places
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2642 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-28 16:21:39 +00:00
sebastien
b527623967
trunk preprocessor: small simplification of the Makefile
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2641 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-28 16:16:12 +00:00
sebastien
3f7d1bd6a3
trunk preprocessor: added two more symbolic simplication rules, particularly useful for the static model
...
* x-x=0
* x/x=1
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2640 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-28 16:04:29 +00:00
sebastien
261f08dce3
trunk StaticModel.cc: added model normalization (still need to force normalization of equations of the form a = f(b,c))
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2638 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-27 17:15:14 +00:00
sebastien
a171d72bde
trunk macroprocessor.tex: added missing semicolons
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2635 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-27 13:39:52 +00:00
sebastien
2ae9aad13b
trunk: added autoconf support for the documentation build system (only build stuff for which we have the tools: pdflatex, dblatex, xsltproc)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2634 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-27 13:37:50 +00:00
sebastien
69f44c6b09
trunk: added autoconf support for the documentation build system (only build stuff for which we have the tools: pdflatex, dblatex, xsltproc)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2634 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-27 13:37:50 +00:00
michel
02d388d6b9
4.1: changed mex LDFLAGS option for compiling *_dynamics.c to make the Dynamic function public.
...
This most likely makes it unusable for compilers other than gcc
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2632 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-25 13:06:36 +00:00
sebastien
177da869b1
trunk:
...
* use autoconf to create the preprocessor Makefile
* the preprocessor now displays the version number
* the top-level Makefile triggers compilation of the preprocessor and of the documentation
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2621 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-23 15:52:00 +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
34ee60fbe7
trunk preprocessor:
...
* added support for derivatives of Hessian w.r. to parameters
* added "identification" command which does nothing for the moment, except triggering those derivatives w.r. to params
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2613 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-20 13:58:15 +00:00
sebastien
a0af8f7ea0
trunk preprocessor: restructuring the way we decide which derivatives to compute
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2610 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-20 10:48:54 +00:00
sebastien
d99229ca24
trunk preprocessor:
...
* fixed bug with planner_objective
* fixed another bug due to unitialized max_{lead,lags} values
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2604 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-18 18:07:28 +00:00
sebastien
d2b347eb3a
trunk: reverted r2572 changeset
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2601 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-18 14:07:57 +00:00
sebastien
1d0d05cee1
trunk preprocessor: fixed bug with normcdf derivative (introduced in r2596)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2598 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-17 21:22:44 +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
7afeae2fca
trunk preprocessor: some cleanups related to sparse mode (removed SimulSparseStatement class and incorporated it into SimulStatement, determine mode at preprocessing time instead of runtime in StochSimulStatement)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2595 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-14 15:02:51 +00:00
sebastien
a2da8397f8
trunk preprocessor: added missing headers for recent versions of GCC
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2594 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-14 14:47:57 +00:00
sebastien
3e6faafbec
trunk preprocessor: cosmetic change for consistency in bison file
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2593 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-14 14:43:54 +00:00
sebastien
7fa0d9722d
trunk preprocessor:
...
* created a distinct expression tree for the static model (thus giving better sharing of sub-expressions and better computation of temporary terms for the static model)
* for that purpose, created StaticModel and DynamicModel classes (ModelTree still persists, but only contains code shared between StaticModel and DynamicModel)
* removed sparse static file (to be later replaced by new algorithm for steady state computation on large models)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2592 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-14 14:39:53 +00:00
ferhat
7b990f4526
The sparse option in model is now compatible with homotopy => preprocessor commit
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2588 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-10 16:56:27 +00:00
sebastien
dca1c2c841
trunk preprocessor: use different tokens for inv_gamma_pdf and inv_gamma1_pdf (for more explicit error messages and for consistency with ln and log)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2580 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-09 14:47:45 +00:00
sebastien
c46c670f7f
trunk: fixed bug with USE_DLL and second order (Hessian matrix was not sparse)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2572 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-09 10:07:37 +00:00
sebastien
eb6b9b0414
trunk: fixed bug with USE_DLL (stoch_simul was calling stoch_simul_sparse, because of wrong handling of options_.model_mode)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2571 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-09 10:02:45 +00:00
sebastien
99df94aa1b
trunk: removed some bashisms in Makefiles (merge needed)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2536 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-27 17:47:30 +00:00
sebastien
31649fb94d
trunk: removed some bashisms in Makefiles (merge needed)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2536 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-27 17:47:30 +00:00
sebastien
1a3243520d
trunk: {load,save}_params_and_steady_state now use a text file for communicating (instead of a MAT-file)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2517 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-24 16:29:58 +00:00
ferhat
e793fc8a41
Minor corrections on multiprocessing in simulate
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2464 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-13 17:59:45 +00:00
sebastien
b81f639569
trunk: updates to the macroprocessor slides
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2462 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-13 16:34:56 +00:00
sebastien
1e9e73075d
trunk preprocessor: removed underscore in Model_Graph.{cc,hh}
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2460 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-13 13:48: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
ferhat
903fad3d1a
modifications in sparse options to support the new variable indexation
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2458 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-13 13:33:09 +00:00
sebastien
f38362d812
trunk preprocessor: simplified build system (only one Makefile now)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2455 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-12 11:02:56 +00:00
sebastien
80aa9562ec
trunk preprocessor: added new "change_type" command
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2452 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-11 11:43:18 +00:00
sebastien
b121f679bb
trunk preprocessor: fix compatibility issues with Bison 2.4
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2442 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-27 14:29:08 +00:00
sebastien
a0fbd7d198
trunk preprocessor:
...
* reorganized symbol table so that internally symbols have a unique integer ID (as a result, sparse code is temporarily in a broken state)
* rewritten from scratch ModFile::evalAllExpressions()
* {load,save}_params_and_steady_state moved to NumericalInitialization.{cc,hh}
* fixed bug related to endval block
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2441 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-27 12:19:25 +00:00
sebastien
90c1999c69
trunk: allow the possibility of modifying Matlab matrices which have been earlier used in initval/endval
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2437 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-26 10:46:54 +00:00
sebastien
ce1b012278
trunk preprocessor: fixed a memory management bug related to the filename being parsed
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2412 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-12 13:38:01 +00:00
sebastien
2de828a643
trunk preprocessor/macro: allow empty arrays, and iteration over them in @#for loops (empty array can only be constructed through set difference for the moment)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2401 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-06 15:47:26 +00:00
sebastien
1883643772
trunk preprocessor: fixed bug in the macro-processor, when the body of a @#for loop is empty
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2399 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-05 15:54:09 +00:00
sebastien
b62649a667
trunk preprocessor: cosmetic change to Bison file, for consistency with other options
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2398 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-05 15:07:49 +00:00
sebastien
cdf47df542
trunk preprocessor: allow one line comments behind @#else
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2396 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-04 23:42:48 +00:00
sebastien
e61f213a84
trunk preprocessor: allow one line comments behind @#endif and @#endfor
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2394 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-04 23:24:16 +00:00