# Broadcast Vec{Matrix}

**URL:** <https://discourse.julialang.org/t/broadcast-vec-matrix/115632>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [June 14, 2024, 2:36am UTC](https://discourse.julialang.org/t/broadcast-vec-matrix/115632 "2024-06-14T02:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyan](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Post date:** [June 14, 2024, 2:36am UTC](https://discourse.julialang.org/t/broadcast-vec-matrix/115632/1 "2024-06-14T02:36:06Z")

</div>

I have two vector of matrix `AL = [A1, A2, ..., An]` and `wL = [w1, w2, ..., wn]`, I want to obtain the array of `[A1.*w1, ..., An.*wn]`, but `AL.* wL` gives me `[A1*w1, ..., An*wn]`. Is there any methods could make all the multiplicities into element-wise?

---

<div class="post-metadata">

**Author:** ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Post date:** [June 14, 2024, 3:10am UTC](https://discourse.julialang.org/t/broadcast-vec-matrix/115632/2 "2024-06-14T03:10:44Z")

</div>

```julia
map(.*, AL, wL)

```

should do what you want.
