Skip to content

Commit

Permalink
Minor simplification (cms-sw#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcano committed May 17, 2021
1 parent a598f67 commit bbda03e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace riemannFit {
for (uint k = 0; k < n; ++k) {
for (uint l = k; l < n; ++l) {
for (uint i = 0; i < std::min(k, l); ++i) {
tmp(k + n, l + n) += std::abs(s_values(k) - s_values(i)) * std::abs(s_values(l) - s_values(i)) * sig2_S(i);
tmp(k + n, l + n) += std::abs((s_values(k) - s_values(i)) * (s_values(l) - s_values(i))) * sig2_S(i);
}
tmp(l + n, k + n) = tmp(k + n, l + n);
}
Expand Down

0 comments on commit bbda03e

Please sign in to comment.