Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
1673358d
Commit
1673358d
authored
Dec 25, 2017
by
Uwe Schulzweida
Browse files
Convert distance to float.
parent
c47c1f56
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nanoflann.hpp
View file @
1673358d
...
@@ -1378,6 +1378,7 @@ namespace nanoflann
...
@@ -1378,6 +1378,7 @@ namespace nanoflann
const
IndexType
index
=
BaseClassRef
::
vind
[
i
];
// reorder... : i;
const
IndexType
index
=
BaseClassRef
::
vind
[
i
];
// reorder... : i;
DistanceType
dist
=
distance
.
evalMetric
(
vec
,
index
,
(
DIM
>
0
?
DIM
:
BaseClassRef
::
dim
));
DistanceType
dist
=
distance
.
evalMetric
(
vec
,
index
,
(
DIM
>
0
?
DIM
:
BaseClassRef
::
dim
));
#ifdef NANOFLANN_FIRST_MATCH // Uwe Schulzweida
#ifdef NANOFLANN_FIRST_MATCH // Uwe Schulzweida
dist
=
(
float
)
dist
;
if
(
dist
<
worst_dist
||
(
dist
<=
worst_dist
&&
index
<
worst_index
)
)
{
if
(
dist
<
worst_dist
||
(
dist
<=
worst_dist
&&
index
<
worst_index
)
)
{
#else
#else
if
(
dist
<
worst_dist
)
{
if
(
dist
<
worst_dist
)
{
...
...
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