Commit 0612bca0 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Remove spurious test.

parent 380df907
...@@ -4320,7 +4320,6 @@ ExternalFunctionNode::composeDerivatives(const vector<expr_t> &dargs) ...@@ -4320,7 +4320,6 @@ ExternalFunctionNode::composeDerivatives(const vector<expr_t> &dargs)
{ {
vector<expr_t> dNodes; vector<expr_t> dNodes;
for (int i = 0; i < (int) dargs.size(); i++) for (int i = 0; i < (int) dargs.size(); i++)
if (dargs.at(i) != 0)
dNodes.push_back(datatree.AddTimes(dargs.at(i), dNodes.push_back(datatree.AddTimes(dargs.at(i),
datatree.AddFirstDerivExternalFunctionNode(symb_id, arguments, i+1))); datatree.AddFirstDerivExternalFunctionNode(symb_id, arguments, i+1)));
...@@ -4911,7 +4910,6 @@ FirstDerivExternalFunctionNode::composeDerivatives(const vector<expr_t> &dargs) ...@@ -4911,7 +4910,6 @@ FirstDerivExternalFunctionNode::composeDerivatives(const vector<expr_t> &dargs)
{ {
vector<expr_t> dNodes; vector<expr_t> dNodes;
for (int i = 0; i < (int) dargs.size(); i++) for (int i = 0; i < (int) dargs.size(); i++)
if (dargs.at(i) != 0)
dNodes.push_back(datatree.AddTimes(dargs.at(i), dNodes.push_back(datatree.AddTimes(dargs.at(i),
datatree.AddSecondDerivExternalFunctionNode(symb_id, arguments, inputIndex, i+1))); datatree.AddSecondDerivExternalFunctionNode(symb_id, arguments, inputIndex, i+1)));
expr_t theDeriv = datatree.Zero; expr_t theDeriv = datatree.Zero;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment