Skip to content

Commit 9e2c679

Browse files
committed
more
1 parent d53a454 commit 9e2c679

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ are fat, *The 4th CGC Workshop on Computational Geometry*, 1999.
159159

160160
March, W.B., Parikshit, R., Gray, A.G., Fast Euclidean minimum spanning
161161
tree: Algorithm, analysis, and applications,
162-
*Proc. 16th ACM SIGKDD Intl. Conf. Knowledge Discovery and Data Mining (KDD '10)*, 2010, 603–612.
162+
*Proc. 16th ACM SIGKDD Intl. Conf. Knowledge Discovery and Data Mining (KDD '10)*,
163+
2010, 603–612.
163164

164165
Olson C.F., Parallel algorithms for hierarchical clustering,
165166
*Parallel Computing* **21**(8), 1995, 1313–1325.
@@ -177,5 +178,5 @@ Optimizing search strategies in K-d Trees,
177178
2001.
178179

179180

180-
See the package's [homepage](https://quitefastmst.gagolewski.com/)
181+
See **quitefastmst**'s [homepage](https://quitefastmst.gagolewski.com/)
181182
for more references.

src/c_kdtree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class kdtree
347347
}
348348
}
349349
// The sliding midpoint rule:
350-
FLOAT split_val = 0.5*(root->bbox_min[split_dim] + root->bbox_max[split_dim]); // midrange
350+
FLOAT split_val = 0.5f*(root->bbox_min[split_dim] + root->bbox_max[split_dim]); // midrange
351351

352352
// this doesn't improve:
353353
// size_t cnt = 0;

src/c_kdtree_boruvka.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ class kdtree_boruvka : public kdtree<FLOAT, D, DISTANCE, NODE>
900900
#if OPENMP_IS_ENABLED
901901
#pragma omp parallel for schedule(static)
902902
#endif
903-
for (size_t l=0; l<leaves.size(); ++l) {
903+
for (Py_ssize_t l=0; l<this->nleaves; ++l) {
904904
NODE* curleaf = leaves[l];
905905

906906
if (curleaf->cluster_repr >= 0 && curleaf->idx_to - curleaf->idx_from > 1) // all elems in the same cluster

0 commit comments

Comments
 (0)