BTW, I need that to compare against a column vector with 2
dimensions received from Python through SymPy.jl.
It is not a big issue, I can perfectly use [1 2 3]'.
I'm just wondering if it is the best way to do it.
On Monday, January 27, 2014 6:39:54 AM UTC, Cristóvão Duarte Sousa wrote:
>
>
>
> Hi,
>
> What is the best way to write down a "single column matrix" literal?
> For exampe, to obtain this:
> 3x1 Array{Int64,2}: # 2 dimensions
> 1
> 2
> 3
>
> This
> [[1], [2], [3]]
> doesn't work,
> this
> [1, 2, 3]''
> works but seems it can stop working in the future
> (#2686<https://github.com/JuliaLang/julia/issues/2686>
> ),
> and, finally, this
> [1 2 3]'
> indeed does what I want.
> However, is it the use of the transpose the only option?
>
> Thanks.
>