On Mon, Sep 26, 2016 at 9:49 AM, Ferran Mazzanti
<ferran.mazza...@gmail.com> wrote:
> Hi,
>
> just installed 0.5.0 and have noticed something I seem to remember was
> discussed here a few times, but can't remember exactly what it was.
> I'm wondering what is now the best way to get a row vector from an array. I
> ask because I have something of the form
>
> X = [[1,1,1] [1,-1,-1]]
>
> but then
>
> X[1,:] produces

X[1:1, :]

>
> 2-element Array{Int64,1}:
> 1
> 1
>
> while I thought it would give
>
> 1×2 Array{Int64,2}:
>  1  1
>
> so what is the right way to get the 1x2 form, rather than transposing it
> explicitly?
> That is what I was getting in 0.4.6 and prior versions
>
> Bottom line is: do I have to go back and *touch* all my old codes? If so,
> how nice...
>
> Thanks,
>
> Ferran.
>
>

Reply via email to