Skip to content

Commit

Permalink
fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ludwigschmidt committed Dec 10, 2015
1 parent 68b0331 commit b78d996
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/include/falconn/core/euclidean_distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,28 @@ struct EuclideanDistanceSparse {

while (ii1 < p1size || ii2 < p2size) {
if (ii2 == p2size) {
x = p1[ii1].second;
res += x * x;
++ii1;
continue;
x = p1[ii1].second;
res += x * x;
++ii1;
continue;
}
if (ii1 == p1size) {
x = p2[ii2].second;
res += x * x;
++ii2;
continue;
x = p2[ii2].second;
res += x * x;
++ii2;
continue;
}
if (p1[ii1].first < p2[ii2].first) {
x = p1[ii1].second;
res += x * x;
++ii1;
continue;
x = p1[ii1].second;
res += x * x;
++ii1;
continue;
}
if (p2[ii2].first < p1[ii1].first) {
x = p2[ii2].second;
res += x * x;
++ii2;
continue;
x = p2[ii2].second;
res += x * x;
++ii2;
continue;
}
x = p1[ii1].second;
x -= p2[ii2].second;
Expand Down

0 comments on commit b78d996

Please sign in to comment.