# How to make \`\[0\] == 0\`?

**URL:** <https://discourse.julialang.org/t/how-to-make-0-0/112630>\
**Category:** General Usage\
**Tags:** question, syntax\
**Created:** [April 7, 2024, 6:37am UTC](https://discourse.julialang.org/t/how-to-make-0-0/112630 "2024-04-07T06:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [April 29, 2024, 7:41am UTC](https://discourse.julialang.org/t/how-to-make-0-0/112630/15 "2024-04-29T07:41:18Z")

</div>

More strange things confused me: **A column vector isn’t equal to a single-column matrix but a row vector is equal to a single-row matrix.**

Why?

```julia
julia> col_vec = [1, 2]
2-element Vector{Int64}:
 1
 2

julia> row_vec = col_vec'
1×2 adjoint(::Vector{Int64}) with eltype Int64:
 1 2

julia> one_col_mat = [1; 2;;]
2×1 Matrix{Int64}:
 1
 2

julia> one_row_mat = [1 2]
1×2 Matrix{Int64}:
 1 2

julia> one_col_mat'
1×2 adjoint(::Matrix{Int64}) with eltype Int64:
 1 2

julia> one_row_mat'
2×1 adjoint(::Matrix{Int64}) with eltype Int64:
 1
 2

julia> col_vec == one_col_mat
false

julia> col_vec == one_row_mat'
false

julia> row_vec == one_col_mat'
true

julia> row_vec == one_row_mat
true

julia> one_col_mat == one_row_mat'
true

julia> one_row_mat == one_col_mat'
true

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-0-0/112630)._
