It is very confusing to have indexing of rows and columns not symmetric:

julia> a = zeros(3,3)
3x3 Array{Float64,2}:
 0.0  0.0  0.0
 0.0  0.0  0.0
 0.0  0.0  0.0

julia> a[1,:]
1x3 Array{Float64,2}:
 0.0  0.0  0.0

julia> a[[1],:]
1x3 Array{Float64,2}:
 0.0  0.0  0.0

julia> a[:,1]
3-element Array{Float64,1}:
 0.0
 0.0
 0.0

julia> a[:,[1]]
3x1 Array{Float64,2}:
 0.0
 0.0
 0.0


Reply via email to