On Mon, Oct 17, 2016 at 9:22 AM, Chang Kwon <ch.k...@gmail.com> wrote:

>
> It seems that the way Julia handles A[1,:] changed in v0.5.
>
> *julia> **A = [1 2 3; 4 5 6]*
>
> *2×3 Array{Int64,2}:*
>
> * 1  2  3*
>
> * 4  5  6*
>
>
> *julia> **A[1,:]*
>
> *3-element Array{Int64,1}:*
>
> * 1*
>
> * 2*
>
> * 3*
>
>
> *julia> **size(A[1,:])*
>
> *(3,)*
>
>
> A[1,:] used to be a row-vector in v0.4 same as in MATLAB, but it is now a
> column vector. What is the *best and most reasonable* way to retrieve
> rows of a matrix as a row vector? Just transpose it like A[1,:]' ?
>

A[1:1, :]

Reply via email to