julia> idxs = x .!= y
5-element BitVector:
1
1
0
0
1
julia> x[idxs]
3-element Vector{Float64}:
0.1
0.2
0.5
julia> y[idxs]
3-element Vector{Float64}:
0.2
0.3
0.6
julia> co[idxs]
3-element Vector{Float64}:
0.7
0.8
1.1
3 Likes