Minor simplification

master
Sébastien Villemot 2022-07-11 14:05:29 +02:00
parent 9b34fe856f
commit 92047f547e
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 41 additions and 43 deletions

View File

@ -369,9 +369,8 @@ ExprNode::fillErrorCorrectionRow(int eqn,
// Now fill the matrices // Now fill the matrices
for (const auto &[var_id, lag, param_id, constant] : error_linear_combination) for (const auto &[var_id, lag, param_id, constant] : error_linear_combination)
{ if (auto [orig_vid, orig_lag] = datatree.symbol_table.unrollDiffLeadLagChain(var_id, lag);
auto [orig_vid, orig_lag] = datatree.symbol_table.unrollDiffLeadLagChain(var_id, lag); find(target_lhs.begin(), target_lhs.end(), orig_vid) == target_lhs.end())
if (find(target_lhs.begin(), target_lhs.end(), orig_vid) == target_lhs.end())
{ {
if (orig_lag != -1) if (orig_lag != -1)
{ {
@ -412,7 +411,6 @@ ExprNode::fillErrorCorrectionRow(int eqn,
A0star[coor] = e; A0star[coor] = e;
} }
} }
}
} }
void void