Compute a sparse distance matrix
Computes a distance matrix between two KDTrees, leaving as zero any distance greater than max_distance.
other : KDTree
max_distance : positive float
result : dok_matrix
Sparse matrix representing the results in “dictionary of keys” format.
scipy.spatial.KDTree.query_pairs
scipy.spatial.cKDTree
Enter search terms or a module, class or function name.