KristofferC / NearestNeighbors.jl

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

Trees for integer input data errors now it seems #196

Open KristofferC opened 2 months ago

KristofferC commented 2 months ago
julia> data = SVector{2}.([(1, 2), (3, 4), (5, 6), (7, 8), (9, 10)])
5-element Vector{SVector{2, Int64}}:
 [1, 2]
 [3, 4]
 [5, 6]
 [7, 8]
 [9, 10]

julia> tree = KDTree(data; leafsize=1)
ERROR: InexactError: Int64(Inf)
Stacktrace:
  [1] Int64
    @ ./float.jl:912 [inlined]