# Literal representation of Array{T,2} when the array is nx1

**URL:** <https://discourse.julialang.org/t/literal-representation-of-array-t-2-when-the-array-is-nx1/8821>\
**Category:** New to Julia\
**Tags:** faq\
**Created:** [February 4, 2018, 11:03pm UTC](https://discourse.julialang.org/t/literal-representation-of-array-t-2-when-the-array-is-nx1/8821 "2018-02-04T23:03:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 5, 2018, 6:30am UTC](https://discourse.julialang.org/t/literal-representation-of-array-t-2-when-the-array-is-nx1/8821/2 "2018-02-05T06:30:09Z")

</div>

See

> [@How to create a 2x1 Array?](https://discourse.julialang.org/t/how-to-create-a-2x1-array/8337):
>
> TL;DR, answer: to get a 2x1 Array/Matrix transpose a 1x2 matrix, for example: [2 4]' A more general solution that also works for complex numbers in Julia V0.7- would be transpose([2 4]) I wanted to test julia\> maximum([1 2; 3 4], 2) 2×1 Array{Int64,2}: 2 4 So I tried julia\> maximum([1 2; 3 4], 2) == [2;4] false I expected the value to be true, but the value is false because julia\> [2;4] 2-element Array{Int64,1}: 2 4 That is, a 2×1 Array{Int64,2} is not the same as a 2-element Arra…

This should probably become a FAQ.

---

_[View the full topic](https://discourse.julialang.org/t/literal-representation-of-array-t-2-when-the-array-is-nx1/8821)._
