答案 0 :(得分:6)
您可以使用元素比较作为索引器:
julia> a = rand(5,3); a[:,3] = cumsum(a[:,3]);
julia> a
5×3 Array{Float64,2}:
0.265171 0.338287 0.499986
0.669729 0.335505 1.42725
0.504523 0.0826387 2.40342
0.0435413 0.268485 3.35813
0.913878 0.751294 3.38864
julia> a[a[:,3] .< 2.5, :]
3×3 Array{Float64,2}:
0.265171 0.338287 0.499986
0.669729 0.335505 1.42725
0.504523 0.0826387 2.40342