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
b291f4fc
Commit
b291f4fc
authored
Mar 15, 2010
by
Houtan Bastani
Browse files
small fix to implementation of second derivatives of jacobian w.r.t. parameters
parent
19c4f742
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/DynamicModel.cc
View file @
b291f4fc
...
...
@@ -2707,6 +2707,7 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const
{
if
(
!
residuals_params_derivatives
.
size
()
&&
!
jacobian_params_derivatives
.
size
()
&&
!
jacobian_params_second_derivatives
.
size
()
&&
!
hessian_params_derivatives
.
size
())
return
;
...
...
@@ -2719,7 +2720,7 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const
cerr
<<
"ERROR: Can't open file "
<<
filename
<<
" for writing"
<<
endl
;
exit
(
EXIT_FAILURE
);
}
paramsDerivsFile
<<
"function [rp, gp] = "
<<
basename
<<
"_params_derivs(y, x, params, it_)"
<<
endl
paramsDerivsFile
<<
"function [rp, gp
, gpp, hp
] = "
<<
basename
<<
"_params_derivs(y, x, params, it_)"
<<
endl
<<
"%"
<<
endl
<<
"% Warning : this file is generated automatically by Dynare"
<<
endl
<<
"% from model file (.mod)"
<<
endl
<<
endl
;
...
...
Write
Preview
Supports
Markdown
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