# Array/Vector multiplication for single element arrays

**URL:** https://discourse.julialang.org/t/array-vector-multiplication-for-single-element-arrays/39377
**Category:** New to Julia
**Tags:** question
**Created:** [May 13, 2020, 1:26am UTC](https://discourse.julialang.org/t/array-vector-multiplication-for-single-element-arrays/39377 "2020-05-13T01:26:23Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [May 13, 2020, 2:24am UTC](https://discourse.julialang.org/t/array-vector-multiplication-for-single-element-arrays/39377/4 "2020-05-13T02:24:49Z")

</div>

Sincerely, I think this post could have been avoided and your day to be more productive [if the change of error message discussed in this post was already implemented](https://discourse.julialang.org/t/eachrow-over-array-any-2-does-not-return-rows-why/34601/17). So you would have alternatives already presented to you.

Are you sure that what you want is not:

```julia
> A = [1;2]; B = [3];
> A * B'
2×1 Array{Int64,2}:
 3
 6

```

In other words, this operation is not really defined for vectors (`Array{T, 1}`), it is defined for matrices (`Array{T, 2}`). You should use the right type.

---

_[View the full topic](https://discourse.julialang.org/t/array-vector-multiplication-for-single-element-arrays/39377)._
