# 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:** 14

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [February 21, 2020, 4:27pm UTC](https://discourse.julialang.org/t/vector-vs-column-vector/34699/14 "2020-02-21T16:27:20Z")

</div>

A little late, but I think the discussion here is also relevant:

> [@\`eachrow\` over Array{Any, 2} does not return rows, why?](https://discourse.julialang.org/t/eachrow-over-array-any-2-does-not-return-rows-why/34601):
>
> I use Julia often, but mostly JuMP. I have incentivized the use of Julia in my laboratory. Today, one of my laboratory colleagues has said to me he used Julia to make a small program, and while he overall liked the language he found the inconsistency between row and column major to have made him lost some sanity and wasted considerable development time. I was confused because I do not make much use of matrices but this somewhat did not align with I had seen in many discussion about Julia. After …

The best course of action seemed to give a better error message. I will probably work on such enhancement next week. I think it is reasonable that exist a convention that a vector is always assumed to be a column (in the case we need to decide to treat it as a row or as a column) but at the same time there is an specific type to represent a column of an N-dimensional array that is different from the just-a-single-dimension-aware-vector. I just think that, in the context of some matrix operations (`eachrow` in the link above), some methods would make more sense to return a matrix with some unitary dimensions instead following the pattern of _always_ dropping unitary dimensions from methods returns.

---

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