"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "7c7b60be18cc77793aa7ee1815c0993e23e24c1e"
Unverified Commit 75b3463f authored by Juha Reunanen's avatar Juha Reunanen Committed by GitHub
Browse files

Avoid distracting compiler warning (#2472)

parent f0c0b307
...@@ -160,9 +160,10 @@ namespace dlib ...@@ -160,9 +160,10 @@ namespace dlib
/* Householder's reduction to bidiagonal form. */ /* Householder's reduction to bidiagonal form. */
g = x = 0.0; g = x = 0.0;
for (i=0; i<n; i++) auto ei = e.begin();
for (i=0; i<n; i++, ei++)
{ {
e(i) = g; *ei = g;
s = 0.0; s = 0.0;
l = i + 1; l = i + 1;
...@@ -222,7 +223,7 @@ namespace dlib ...@@ -222,7 +223,7 @@ namespace dlib
} /* end j */ } /* end j */
} /* end s */ } /* end s */
y = abs(q(i)) + abs(e(i)); y = abs(q(i)) + abs(*ei);
if (y > x) if (y > x)
x = y; x = y;
} /* end i */ } /* end i */
......
Markdown is supported
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