I need fast searching for relation many-to-many
julia> a=[1 1 1 2 2 3]’
6×1 Array{Int64,2}:
1
1
1
2
2
3
julia> b=[100 100 200 300 300 500]’
6×1 Array{Int64,2}:
100
100
200
300
300
500
julia> Dict(zip(a,b))
Dict{Int64,Int64} with 3 entries:
2 => 300
3 => 500
1 => 200
julia> Special_Dict=hcat(a,b)
6×2 Array{Int64,2}:
1 100
1 100
1 200
2 300
2 300
3 500
I am looking for somthig fast
Special_Dict(1) >100 100 200
Special_Dict(2) >300 300
Special_Dict[:,1].==1 is to slow
Paul