Hi Davide,

There is already some good answers to your question on the list. See for 
instance: 
https://groups.google.com/forum/#!searchin/julia-users/array$202d$20scalar/julia-users/L3vPeZ7kews/LY60boyLhnoJ

Hope this is what you were looking for.

Best, 
Oliver

Den tirsdag den 20. maj 2014 21.45.11 UTC+2 skrev Davide Lasagna:
>
> Hi,
>
> Probably it is because I come from a numpy world, but why does slicing by 
> column differs from slicing by row?
>
> a = ones(Float64, (10, 10))
> println(typeof(a[1, :])) # this gives Array{Float64,2} ( i expected a 1d 
> array )
> println(typeof(a[:, 1])) # this gives Array{Float64,1}
>
>
> Davide
>

Reply via email to