Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
preprocessor
Commits
07f5de36
Commit
07f5de36
authored
2 years ago
by
MichelJuillard
Browse files
Options
Downloads
Patches
Plain Diff
remove param derivatives rpp gpp hp g3p
parent
59b064b8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#11815
failed
1 week ago
Stage: build
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/DynamicModel.hh
+2
-9
2 additions, 9 deletions
src/DynamicModel.hh
src/StaticModel.hh
+2
-7
2 additions, 7 deletions
src/StaticModel.hh
with
4 additions
and
16 deletions
src/DynamicModel.hh
+
2
−
9
View file @
07f5de36
...
@@ -763,22 +763,15 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const
...
@@ -763,22 +763,15 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const
<<
"function dynamic_params_derivs(y, x, params, steady_state, it_,"
<<
"function dynamic_params_derivs(y, x, params, steady_state, it_,"
<<
"ss_param_deriv, ss_param_2nd_deriv)"
<<
endl
<<
"ss_param_deriv, ss_param_2nd_deriv)"
<<
endl
<<
"@inbounds begin"
<<
endl
<<
"@inbounds begin"
<<
endl
<<
"T = zeros("
<<
params_derivs_temporary_terms_idxs
.
size
()
<<
")"
<<
endl
<<
tt_output
.
str
()
<<
tt_output
.
str
()
<<
"rp = zeros("
<<
equations
.
size
()
<<
", "
<<
"rp = zeros("
<<
equations
.
size
()
<<
", "
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
rp_output
.
str
()
<<
rp_output
.
str
()
<<
"gp = zeros("
<<
equations
.
size
()
<<
", "
<<
getJacobianColsNbr
(
false
)
<<
", "
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
"gp = zeros("
<<
equations
.
size
()
<<
", "
<<
getJacobianColsNbr
(
false
)
<<
", "
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
gp_output
.
str
()
<<
gp_output
.
str
()
<<
"rpp = zeros("
<<
params_derivatives
.
at
({
0
,
2
}).
size
()
<<
",4);"
<<
endl
<<
rpp_output
.
str
()
<<
"gpp = zeros("
<<
params_derivatives
.
at
({
1
,
2
}).
size
()
<<
",5);"
<<
endl
<<
gpp_output
.
str
()
<<
"hp = zeros("
<<
params_derivatives
.
at
({
2
,
1
}).
size
()
<<
",5);"
<<
endl
<<
hp_output
.
str
()
<<
"g3p = zeros("
<<
params_derivatives
.
at
({
3
,
1
}).
size
()
<<
",6);"
<<
endl
<<
g3p_output
.
str
()
<<
"end"
<<
endl
<<
"end"
<<
endl
<<
"return (rp, gp
, rpp, gpp, hp, g3p
)"
<<
endl
<<
"return (rp, gp)"
<<
endl
<<
"end"
<<
endl
;
<<
"end"
<<
endl
;
writeToFileIfModified
(
output
,
filesystem
::
path
{
basename
}
/
"model"
/
"julia"
/
"DynamicParamsDerivs.jl"
);
writeToFileIfModified
(
output
,
filesystem
::
path
{
basename
}
/
"model"
/
"julia"
/
"DynamicParamsDerivs.jl"
);
...
...
This diff is collapsed.
Click to expand it.
src/StaticModel.hh
+
2
−
7
View file @
07f5de36
...
@@ -275,6 +275,7 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
...
@@ -275,6 +275,7 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
<<
"#"
<<
endl
<<
"#"
<<
endl
<<
"function static_params_derivs(y, x, params)"
<<
endl
<<
"function static_params_derivs(y, x, params)"
<<
endl
<<
"@inbounds begin"
<<
endl
<<
"@inbounds begin"
<<
endl
<<
"T = zeros("
<<
params_derivs_temporary_terms_idxs
.
size
()
<<
")"
<<
endl
<<
tt_output
.
str
()
<<
tt_output
.
str
()
<<
"rp = zeros("
<<
equations
.
size
()
<<
", "
<<
"rp = zeros("
<<
equations
.
size
()
<<
", "
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
...
@@ -282,14 +283,8 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
...
@@ -282,14 +283,8 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
<<
"gp = zeros("
<<
equations
.
size
()
<<
", "
<<
symbol_table
.
endo_nbr
()
<<
", "
<<
"gp = zeros("
<<
equations
.
size
()
<<
", "
<<
symbol_table
.
endo_nbr
()
<<
", "
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
symbol_table
.
param_nbr
()
<<
");"
<<
endl
<<
gp_output
.
str
()
<<
gp_output
.
str
()
<<
"rpp = zeros("
<<
params_derivatives
.
at
({
0
,
2
}).
size
()
<<
",4);"
<<
endl
<<
rpp_output
.
str
()
<<
"gpp = zeros("
<<
params_derivatives
.
at
({
1
,
2
}).
size
()
<<
",5);"
<<
endl
<<
gpp_output
.
str
()
<<
"hp = zeros("
<<
params_derivatives
.
at
({
2
,
1
}).
size
()
<<
",5);"
<<
endl
<<
hp_output
.
str
()
<<
"end"
<<
endl
<<
"end"
<<
endl
<<
"return (rp, gp
, rpp, gpp, hp
)"
<<
endl
<<
"return (rp, gp)"
<<
endl
<<
"end"
<<
endl
;
<<
"end"
<<
endl
;
writeToFileIfModified
(
output
,
filesystem
::
path
{
basename
}
/
"model"
/
"julia"
/
"StaticParamsDerivs.jl"
);
writeToFileIfModified
(
output
,
filesystem
::
path
{
basename
}
/
"model"
/
"julia"
/
"StaticParamsDerivs.jl"
);
...
...
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