Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
16aada08
Commit
16aada08
authored
May 05, 2012
by
Davis King
Browse files
Fixed a bug in sparse_to_dense() which I just introduced a few
commits ago.
parent
c9a1aa4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/svm/sparse_vector.h
dlib/svm/sparse_vector.h
+1
-1
No files found.
dlib/svm/sparse_vector.h
View file @
16aada08
...
...
@@ -659,7 +659,7 @@ namespace dlib
for
(
typename
sparse_vector_type
::
const_iterator
j
=
vect
.
begin
();
j
!=
vect
.
end
();
++
j
)
{
if
(
result
.
size
()
<
(
long
)(
j
->
first
))
if
(
(
long
)(
j
->
first
)
<
result
.
size
(
))
{
result
(
j
->
first
)
+=
j
->
second
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment