18 const std::vector<double> &x) {
29 int k = num_neighbors;
32 std::vector<int> irn(nPts * k * 2);
33 std::vector<int> jcn(nPts * k * 2);
34 std::vector<double> val(nPts * k * 2);
39 jcn.data(), val.data(),
SparseMatrix SparseMatrix_from_coordinate_arrays(int nz, int m, int n, int *irn, int *jcn, void *val0, int type, size_t sz)
void nearest_neighbor_graph_ann(int nPts, int k, const std::vector< double > &x, int &nz0, std::vector< int > &irn, std::vector< int > &jcn, std::vector< double > &val)