mirror of https://github.com/davisking/dlib.git
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:
parent
13f297ae95
commit
1a28cca67c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue