Commit f0fd26ba authored by Davis King's avatar Davis King

Added some static_casts to avoid compiler warnings.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403838
parent 4da79d8d
......@@ -241,7 +241,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual decomposition
info = binding::gees(jobz, n,
......
......@@ -210,7 +210,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual decomposition
info = binding::geev(jobvl, jobvr, n, &a(0,0),
......
......@@ -145,7 +145,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual decomposition
info = binding::geqrf(a.nr(), a.nc(), &a(0,0), a.nr(),
......
......@@ -244,7 +244,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual SVD
info = binding::gesdd(jobz, a.nr(), a.nc(), &a(0,0), a.nr(),
......@@ -316,7 +316,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual SVD
info = binding::gesdd(jobz, m, n, &a(0,0), a.nc(),
......
......@@ -233,7 +233,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual SVD
info = binding::gesvd(jobu, jobvt, a.nr(), a.nc(), &a(0,0), a.nr(),
......@@ -301,7 +301,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual SVD
info = binding::gesvd(jobu, jobvt, m, n, &a(0,0), a.nc(),
......
......@@ -146,7 +146,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual decomposition
info = binding::syev(jobz, uplo, n, &a(0,0),
......@@ -191,7 +191,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
// compute the actual decomposition
info = binding::syev(jobz, uplo, n, &a(0,0),
......
......@@ -343,7 +343,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
if (iwork.size() < iwork_size)
iwork.set_size(iwork_size, 1);
......@@ -416,7 +416,7 @@ namespace dlib
return info;
if (work.size() < work_size)
work.set_size(work_size, 1);
work.set_size(static_cast<long>(work_size), 1);
if (iwork.size() < iwork_size)
iwork.set_size(iwork_size, 1);
......
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