# Broadcast over a specific dimension of array

**URL:** https://discourse.julialang.org/t/broadcast-over-a-specific-dimension-of-array/43158
**Category:** General Usage
**Tags:** question
**Created:** [July 16, 2020, 3:34am UTC](https://discourse.julialang.org/t/broadcast-over-a-specific-dimension-of-array/43158 "2020-07-16T03:34:02Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![white-c](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/white-c/32/16410_2.png) [@white-c](https://discourse.julialang.org/u/white-c)
#### Post date: [July 16, 2020, 5:12am UTC](https://discourse.julialang.org/t/broadcast-over-a-specific-dimension-of-array/43158/4 "2020-07-16T05:12:17Z")

</div>

The matrix represents the mapping of inputs to outputs of an electrical circuit. The outer dimension represents how that matrix changes at different frequency points. So to flip the mapping from outputs to inputs I just need to invert the matrix, but I want to do it at each frequency so I need to invert the matrix for each matrix along the array. It sounds like a 1D array of 2D arrays would be the best approach.

---

_[View the full topic](https://discourse.julialang.org/t/broadcast-over-a-specific-dimension-of-array/43158)._
