Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
e1b274f2
Commit
e1b274f2
authored
Jun 11, 2010
by
Sébastien Villemot
Browse files
Estimation DLL, ModelSolution class: make llxSteadyState a data member
parent
1e414588
Changes
2
Hide whitespace changes
Inline
Side-by-side
mex/sources/estimation/ModelSolution.cc
View file @
e1b274f2
...
...
@@ -37,7 +37,8 @@ ModelSolution::ModelSolution(const std::string& dynamicDllFile, size_t n_endo_a
n_jcols
(
n_exo
+
n_endo
+
zeta_back_arg
.
size
()
/*nsPred*/
+
zeta_fwrd_arg
.
size
()
/*nsForw*/
+
2
*
zeta_mixed_arg
.
size
()),
jacobian
(
n_endo
,
n_jcols
),
residual
(
n_endo
),
Mx
(
2
,
n_exo
),
decisionRules
(
n_endo_arg
,
n_exo_arg
,
zeta_fwrd_arg
,
zeta_back_arg
,
zeta_mixed_arg
,
zeta_static_arg
,
INqz_criterium
),
dynamicDLLp
(
dynamicDllFile
,
n_endo
,
n_jcols
,
/* nMax_lag= */
1
,
n_exo
)
dynamicDLLp
(
dynamicDllFile
,
n_endo
,
n_jcols
,
/* nMax_lag= */
1
,
n_exo
),
llXsteadyState
(
n_jcols
-
n_exo
)
{
Mx
.
setAll
(
0.0
);
jacobian
.
setAll
(
0.0
);
...
...
@@ -67,8 +68,6 @@ ModelSolution::ComputeModelSolution(VectorView &steadyState, const Vector& deepP
{
// set extended Steady State
Vector
llXsteadyState
(
n_jcols
-
n_exo
);
for
(
size_t
i
=
0
;
i
<
zeta_back_mixed
.
size
();
i
++
)
llXsteadyState
(
i
)
=
steadyState
(
zeta_back_mixed
[
i
]);
...
...
mex/sources/estimation/ModelSolution.hh
View file @
e1b274f2
...
...
@@ -54,6 +54,7 @@ private:
Matrix
Mx
;
DecisionRules
decisionRules
;
DynamicModelDLL
dynamicDLLp
;
Vector
llXsteadyState
;
//Matrix jacobian;
void
ComputeModelSolution
(
VectorView
&
steadyState
,
const
Vector
&
deepParams
,
Matrix
&
ghx
,
Matrix
&
ghu
)
throw
(
DecisionRules
::
BlanchardKahnException
,
GeneralizedSchurDecomposition
::
GSDException
);
void
ComputeSteadyState
(
VectorView
&
steadyState
,
const
Vector
&
deepParams
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment