KristofferC / NearestNeighbors.jl

High performance nearest neighbor data structures (KDTree and BallTree) and algorithms for Julia.
Other
413 stars 65 forks source link

KDTree with Matrix{ComplexF64} #175

Closed oameye closed 2 months ago

oameye commented 8 months ago

Should a KDTree from Matrix{ComplexF64} dataset not be possible?

data = rand(ComplexF64, 3, 10^4)
kdtree = KDTree(data)

gives

ERROR: MethodError: no method matching KDTree(::Matrix{ComplexF64})
KristofferC commented 2 months ago

I don't think so because complex numbers are not really orderable.