test.py
Go to the documentation of this file.
1 from pynabo import *
2 import numpy as np
3 
4 x = np.array([[0.,3.], [1,2], [4,5]])
5 print(x)
6 
8 q = np.array([[1.1, 2.]])
9 print(q)
10 
11 res = nns.knn(q, 2, 0, SearchOptionFlags.ALLOW_SELF_MATCH)
12 print(res[0])
13 print(res[1])
NearestNeighbourSearch
Definition: python/nabo.cpp:95


libnabo
Author(s): St├ęphane Magnenat
autogenerated on Sat Mar 23 2024 02:52:25