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
5cee2563
Commit
5cee2563
authored
Mar 14, 2013
by
Davis King
Browse files
A minor change to avoid a compiler warning from clang
parent
1153e056
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dlib/graph_utils/find_k_nearest_neighbors_lsh.h
dlib/graph_utils/find_k_nearest_neighbors_lsh.h
+4
-2
No files found.
dlib/graph_utils/find_k_nearest_neighbors_lsh.h
View file @
5cee2563
...
...
@@ -159,7 +159,8 @@ namespace dlib
hashes
.
resize
(
samples
.
size
());
typedef
impl
::
hash_block
<
vector_type
,
hash_function_type
>
block_type
;
parallel_for
(
num_threads
,
0
,
samples
.
size
(),
block_type
(
samples
,
hash_funct
,
hashes
));
block_type
temp
(
samples
,
hash_funct
,
hashes
);
parallel_for
(
num_threads
,
0
,
samples
.
size
(),
temp
);
}
// ----------------------------------------------------------------------------------------
...
...
@@ -201,7 +202,8 @@ namespace dlib
hash_samples
(
samples
,
hash_funct
,
num_threads
,
hashes
);
typedef
impl
::
scan_find_k_nearest_neighbors_lsh
<
vector_type
,
distance_function_type
,
hash_function_type
,
alloc
>
scan_type
;
parallel_for
(
num_threads
,
0
,
hashes
.
size
(),
scan_type
(
samples
,
dist_funct
,
hash_funct
,
k
,
edges
,
k_oversample
,
hashes
));
scan_type
temp
(
samples
,
dist_funct
,
hash_funct
,
k
,
edges
,
k_oversample
,
hashes
);
parallel_for
(
num_threads
,
0
,
hashes
.
size
(),
temp
);
remove_duplicate_edges
(
edges
);
}
...
...
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