Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
1424cf2e
Commit
1424cf2e
authored
12 years ago
by
MichelJuillard
Browse files
Options
Downloads
Patches
Plain Diff
k_order mex: added derivatives as members of KorderpDynare
(cherry picked from commit
287b1348
)
parent
cda9994b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mex/sources/k_order_perturbation/k_ord_dynare.cc
+5
-6
5 additions, 6 deletions
mex/sources/k_order_perturbation/k_ord_dynare.cc
mex/sources/k_order_perturbation/k_ord_dynare.hh
+4
-0
4 additions, 0 deletions
mex/sources/k_order_perturbation/k_ord_dynare.hh
with
9 additions
and
6 deletions
mex/sources/k_order_perturbation/k_ord_dynare.cc
+
5
−
6
View file @
1424cf2e
...
...
@@ -89,10 +89,8 @@ KordpDynare::evaluateSystem(Vector &out, const Vector &yym, const Vector &yy,
void
KordpDynare
::
calcDerivativesAtSteady
()
throw
(
DynareException
)
{
TwoDMatrix
g1
(
nY
,
nJcols
);
g1
.
zeros
();
TwoDMatrix
*
g2p
=
NULL
,
*
g3p
=
NULL
;
g1p
=
new
TwoDMatrix
(
nY
,
nJcols
);
g1p
->
zeros
();
if
(
nOrder
>
1
)
{
...
...
@@ -115,9 +113,10 @@ KordpDynare::calcDerivativesAtSteady() throw (DynareException)
Vector
llxSteady
(
nJcols
-
nExog
);
LLxSteady
(
ySteady
,
llxSteady
);
dynamicModelFile
->
eval
(
llxSteady
,
xx
,
params
,
ySteady
,
out
,
&
g1
,
g2p
,
g3p
);
dynamicModelFile
->
eval
(
llxSteady
,
xx
,
params
,
ySteady
,
out
,
g1
p
,
g2p
,
g3p
);
populateDerivativesContainer
(
g1
,
1
,
JacobianIndices
);
populateDerivativesContainer
(
*
g1p
,
1
,
JacobianIndices
);
delete
g1p
;
if
(
nOrder
>
1
)
{
...
...
This diff is collapsed.
Click to expand it.
mex/sources/k_order_perturbation/k_ord_dynare.hh
+
4
−
0
View file @
1424cf2e
...
...
@@ -113,6 +113,10 @@ class KordpDynare : public DynamicModel
const
TwoDMatrix
&
ll_Incidence
;
double
qz_criterium
;
vector
<
int
>
JacobianIndices
;
TwoDMatrix
*
g1p
;
TwoDMatrix
*
g2p
;
TwoDMatrix
*
g3p
;
public:
KordpDynare
(
const
vector
<
string
>
&
endo
,
int
num_endo
,
const
vector
<
string
>
&
exo
,
int
num_exo
,
int
num_par
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment