Skip to content

Commit a330885

Browse files
author
mlourakis
committed
typos
1 parent 24832e2 commit a330885

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

include/nanoflann.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -510,13 +510,13 @@ struct L1_Adaptor
510510
DistanceType worst_dist = -1) const
511511
{
512512
DistanceType result = DistanceType();
513-
const size_t multof4 = (size >> 2) << 2; // smallest multiple of 4, i.e. 1 << 2
513+
const size_t multof4 = (size >> 2) << 2; // largest multiple of 4, i.e. 1 << 2
514514
size_t d;
515515

516516
/* Process 4 items with each loop for efficiency. */
517517
if (worst_dist <= 0)
518518
{
519-
/* No checks with worst_dist */
519+
/* No checks with worst_dist. */
520520
for (d = 0; d < multof4; d += 4)
521521
{
522522
const DistanceType diff0 =
@@ -533,7 +533,7 @@ struct L1_Adaptor
533533
}
534534
else
535535
{
536-
/* Check with worst_dist */
536+
/* Check with worst_dist. */
537537
for (d = 0; d < multof4; d += 4)
538538
{
539539
const DistanceType diff0 =
@@ -549,7 +549,7 @@ struct L1_Adaptor
549549
if (result > worst_dist) { return result; }
550550
}
551551
}
552-
/* Process last 0-3 components. Unrolled loop with fall-through switch
552+
/* Process last 0-3 components. Unrolled loop with fall-through switch.
553553
*/
554554
switch(size - multof4){
555555
case 3 : result += std::abs(a[d+2] - data_source.kdtree_get_pt(b_idx, d+2));
@@ -594,13 +594,13 @@ struct L2_Adaptor
594594
DistanceType worst_dist = -1) const
595595
{
596596
DistanceType result = DistanceType();
597-
const size_t multof4 = (size >> 2) << 2; // smallest multiple of 4, i.e. 1 << 2
597+
const size_t multof4 = (size >> 2) << 2; // largest multiple of 4, i.e. 1 << 2
598598
size_t d;
599599

600600
/* Process 4 items with each loop for efficiency. */
601601
if (worst_dist <= 0)
602602
{
603-
/* No checks with worst_dist */
603+
/* No checks with worst_dist. */
604604
for (d = 0; d < multof4; d += 4)
605605
{
606606
const DistanceType diff0 =
@@ -618,7 +618,7 @@ struct L2_Adaptor
618618
}
619619
else
620620
{
621-
/* Check with worst_dist */
621+
/* Check with worst_dist. */
622622
for (d = 0; d < multof4; d += 4)
623623
{
624624
const DistanceType diff0 =
@@ -635,7 +635,7 @@ struct L2_Adaptor
635635
if (result > worst_dist) { return result; }
636636
}
637637
}
638-
/* Process last 0-3 components. Unrolled loop with fall-through switch
638+
/* Process last 0-3 components. Unrolled loop with fall-through switch.
639639
*/
640640
DistanceType diff;
641641
switch(size - multof4){
@@ -1939,7 +1939,7 @@ class KDTreeSingleIndexAdaptor
19391939
/** @} */
19401940

19411941
public:
1942-
/** Make sure the auxiliary list \a vind has the same size than the
1942+
/** Make sure the auxiliary list \a vind has the same size as the
19431943
* current dataset, and re-generate if size has changed. */
19441944
void init_vind()
19451945
{

0 commit comments

Comments
 (0)