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
Dynare
preprocessor
Commits
38ed0f2f
Commit
38ed0f2f
authored
May 25, 2018
by
Sébastien Villemot
Browse files
Remove unused writeChainRuleDerivative methods
parent
c7c26190
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/DynamicModel.cc
View file @
38ed0f2f
...
...
@@ -5204,18 +5204,6 @@ DynamicModel::writeParamsDerivativesFile(const string &basename, bool julia) con
paramsDerivsFile.close();
}
void
DynamicModel
::
writeChainRuleDerivative
(
ostream
&
output
,
int
eqr
,
int
varr
,
int
lag
,
ExprNodeOutputType
output_type
,
const
temporary_terms_t
&
temporary_terms
)
const
{
map
<
pair
<
int
,
pair
<
int
,
int
>
>
,
expr_t
>::
const_iterator
it
=
first_chain_rule_derivatives
.
find
(
make_pair
(
eqr
,
make_pair
(
varr
,
lag
)));
if
(
it
!=
first_chain_rule_derivatives
.
end
())
(
it
->
second
)
->
writeOutput
(
output
,
output_type
,
temporary_terms
);
else
output
<<
0
;
}
void
DynamicModel::writeLatexFile(const string &basename, const bool write_equation_tags) const
{
...
...
src/DynamicModel.hh
View file @
38ed0f2f
...
...
@@ -163,9 +163,6 @@ private:
/*! Also computes max_{endo,exo}_{lead_lag}, and initializes dynJacobianColsNbr to the number of dynamic endos */
void
computeDerivIDs
();
//! Write chain rule derivative of a recursive equation w.r. to a variable
void
writeChainRuleDerivative
(
ostream
&
output
,
int
eq
,
int
var
,
int
lag
,
ExprNodeOutputType
output_type
,
const
temporary_terms_t
&
temporary_terms
)
const
;
//! Collecte the derivatives w.r. to endogenous of the block, to endogenous of previouys blocks and to exogenous
void
collect_block_first_order_derivatives
();
...
...
src/StaticModel.cc
View file @
38ed0f2f
...
...
@@ -2379,18 +2379,6 @@ StaticModel::collect_block_first_order_derivatives()
}
}
void
StaticModel
::
writeChainRuleDerivative
(
ostream
&
output
,
int
eqr
,
int
varr
,
int
lag
,
ExprNodeOutputType
output_type
,
const
temporary_terms_t
&
temporary_terms
)
const
{
map
<
pair
<
int
,
pair
<
int
,
int
>
>
,
expr_t
>::
const_iterator
it
=
first_chain_rule_derivatives
.
find
(
make_pair
(
eqr
,
make_pair
(
varr
,
lag
)));
if
(
it
!=
first_chain_rule_derivatives
.
end
())
(
it
->
second
)
->
writeOutput
(
output
,
output_type
,
temporary_terms
);
else
output
<<
0
;
}
void
StaticModel
::
writeLatexFile
(
const
string
&
basename
,
bool
write_equation_tags
)
const
{
...
...
src/StaticModel.hh
View file @
38ed0f2f
...
...
@@ -101,9 +101,6 @@ private:
//! Collect only the first derivatives
map
<
pair
<
int
,
pair
<
int
,
int
>
>
,
expr_t
>
collect_first_order_derivatives_endogenous
();
//! Write chain rule derivative of a recursive equation w.r. to a variable
void
writeChainRuleDerivative
(
ostream
&
output
,
int
eq
,
int
var
,
int
lag
,
ExprNodeOutputType
output_type
,
const
temporary_terms_t
&
temporary_terms
)
const
;
//! Collecte the derivatives w.r. to endogenous of the block, to endogenous of previouys blocks and to exogenous
void
collect_block_first_order_derivatives
();
...
...
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