NearestNeighbors.jl
NearestNeighbors.jl copied to clipboard
Not working with Adjoint type?
Imagine you have a dataset X, then it is naturally to write something like:
KDTree(Matrix(X)')
It does not working right now. Instead, one should write two times:
KDTree(Matrix(Matrix(X)'))
Can it be fixed?
Materializing the transpose is likely much better for performance since that keeps the coordinates of a point close in memory.
@KristofferC Oh, i see. and for the same reason the package does not work with sparse arrays?
By the way, KDTree is not working with array of int-s also. Is it intentional?
See https://github.com/KristofferC/NearestNeighbors.jl/issues/13, there was some work towards it at https://github.com/KristofferC/NearestNeighbors.jl/pull/14.