# Vector vs Column vector

**URL:** <https://discourse.julialang.org/t/vector-vs-column-vector/34699>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [February 16, 2020, 2:10am UTC](https://discourse.julialang.org/t/vector-vs-column-vector/34699 "2020-02-16T02:10:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 16, 2020, 8:37am UTC](https://discourse.julialang.org/t/vector-vs-column-vector/34699/5 "2020-02-16T08:37:49Z")

</div>

> [@tim.holy](#):
>
> I’m not sure this has been discussed

There are many discussions, eg

> [@Construct a 2-d column array](https://discourse.julialang.org/t/construct-a-2-d-column-array/30617):
>
> Is there a quick way to create an 3x1 Array{ T , 2} where T is a type ? [A, B, C, ...] or [A; B; C; ...] construct a 1-d array (vector). [A B C ...] constructs a 2-d row array. What about a 2-d column array? Does anyone know why [A; B; C; ...] wasn’t chosen for this task?

and there is

> <https://github.com/JuliaLang/julia/issues/17084>
>
> \`hvcat\` concatenation syntax produces matrices, such as in
> 
> \`\`\`
> julia\> \[1 2; 3 4…\]
> 2×2 Array{Int64,2}:
> 1 2
> 3 4
> 
> julia\> \[1 2\]
> 1×2 Array{Int64,2}:
> 1 2
> \`\`\`
> 
> But there is no corresponding way to create a single column matrix:
> 
> \`\`\`
> julia\> \[1; 3\]
> 2-element Array{Int64,1}:
> 1
> 3
> 
> julia\> \[1;\]
> 1-element Array{Int64,1}:
> 1
> \`\`\`
> 
> I suggest that the latter should invoke \`hvcat\` and not \`vcat\`, to produce matrices. This implies that there would be no special \`vcat\` syntax any more.

---

_[View the full topic](https://discourse.julialang.org/t/vector-vs-column-vector/34699)._
