# Efficient vectorized matrix operations for 2D matrix slices of a 3D array?

**URL:** <https://discourse.julialang.org/t/efficient-vectorized-matrix-operations-for-2d-matrix-slices-of-a-3d-array/23679>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [April 30, 2019, 3:11am UTC](https://discourse.julialang.org/t/efficient-vectorized-matrix-operations-for-2d-matrix-slices-of-a-3d-array/23679 "2019-04-30T03:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![GregVernon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregvernon/32/5611_2.png) [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Post date:** [May 1, 2019, 5:47pm UTC](https://discourse.julialang.org/t/efficient-vectorized-matrix-operations-for-2d-matrix-slices-of-a-3d-array/23679/8 "2019-05-01T17:47:43Z")

</div>

I asked a question a while ago, which has some similar themes to your question. You might find some of the answers I got to be useful.

> [@Multiply many-matrices by many-vectors](https://discourse.julialang.org/t/multiply-many-matrices-by-many-vectors/18542/):
>
> All, I have a critical portion of code that essentially involves the multiplication of many pre-computed matrices by many pre-computed vectors. Each matrix multiplies the same, entire list of vectors. Each matrix is the same size (N1xN2) in my current form, but eventually I’d like to remove this requirement, so that each matrix-vector combination can have arbitrary size. In Matlab I might think of this as a cell-array of matrices and a cell array of vectors. But for now I’m just trying to u…

---

_[View the full topic](https://discourse.julialang.org/t/efficient-vectorized-matrix-operations-for-2d-matrix-slices-of-a-3d-array/23679)._
