Switched from signed to unsigned sparse vector keys

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403515
This commit is contained in:
Davis King 2010-03-01 04:00:17 +00:00
parent 13f297ae95
commit 1a28cca67c
1 changed files with 2 additions and 2 deletions

View File

@ -1271,7 +1271,7 @@ namespace dlib
else
{
// first compute w = cscale*alpha*w
for (typename std::map<long,scalar_type>::iterator i = w.begin(); i != w.end(); ++i)
for (typename std::map<unsigned long,scalar_type>::iterator i = w.begin(); i != w.end(); ++i)
{
i->second *= cscale*alpha;
}
@ -1292,7 +1292,7 @@ namespace dlib
kernel_type kernel;
std::map<long,scalar_type> w;
std::map<unsigned long,scalar_type> w;
scalar_type alpha;
scalar_type w_extra;