# Is there a function to permute columns or rows of a matrix in place?

**URL:** https://discourse.julialang.org/t/is-there-a-function-to-permute-columns-or-rows-of-a-matrix-in-place/81667
**Category:** General Usage
**Created:** [May 25, 2022, 5:25pm UTC](https://discourse.julialang.org/t/is-there-a-function-to-permute-columns-or-rows-of-a-matrix-in-place/81667 "2022-05-25T17:25:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [May 25, 2022, 6:00pm UTC](https://discourse.julialang.org/t/is-there-a-function-to-permute-columns-or-rows-of-a-matrix-in-place/81667/2 "2022-05-25T18:00:30Z")

</div>

Linking [this related post](https://discourse.julialang.org/t/permute-multidimensional-array-without-allocation/29153/9).  
For columns it indicates: `Base.permutecols!!(A, p)`  
Should we use for rows: `Base.permutecols!!(A', p)` ?

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-function-to-permute-columns-or-rows-of-a-matrix-in-place/81667)._
