From 6f73d714a4078ceddd4bd14d23c0fa73ddeb3592 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 13 Feb 2021 21:24:09 -0800 Subject: [PATCH] #include nearest_neighbor_graph_ann.h to avoid duplicating a prototype --- lib/mingle/nearest_neighbor_graph_ann.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mingle/nearest_neighbor_graph_ann.cpp b/lib/mingle/nearest_neighbor_graph_ann.cpp index 71e6488f2..efbad2bfe 100644 --- a/lib/mingle/nearest_neighbor_graph_ann.cpp +++ b/lib/mingle/nearest_neighbor_graph_ann.cpp @@ -16,6 +16,7 @@ //---------------------------------------------------------------------- #include // ANN declarations +#include #include int dim = 4; // dimension @@ -68,9 +69,6 @@ static void sortPtsY(int n, ANNpointArray pts){ } } - -extern "C" void nearest_neighbor_graph_ann(int nPts, int dim, int k, double eps, double *x, int *nz0, int **irn0, int **jcn0, double **val0); - void nearest_neighbor_graph_ann(int nPts, int dim, int k, double eps, double *x, int *nz0, int **irn0, int **jcn0, double **val0){ /* Gives a nearest neighbor graph is a list of dim-dimendional points. The connectivity is in irn/jcn, and the distance in val. -- 2.50.1