# Why is there no \`permutedims!(dest,src)\`?

**URL:** <https://discourse.julialang.org/t/why-is-there-no-permutedims-dest-src/78320>\
**Category:** Internals & Design\
**Tags:** question, array\
**Created:** [March 23, 2022, 8:20am UTC](https://discourse.julialang.org/t/why-is-there-no-permutedims-dest-src/78320 "2022-03-23T08:20:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [March 23, 2022, 8:20am UTC](https://discourse.julialang.org/t/why-is-there-no-permutedims-dest-src/78320/1 "2022-03-23T08:20:21Z")

</div>

There is a `permutedims(A::AbstractMatrix)`, and a `permutedims!(dest, src, perm)`. Seems like there should be a method `permutedims!(dest::AbstractMatrix, src::AbstractMatrix)`, with the default perm being `[2,1]`.

---

<div class="post-metadata">

**Author:** ![photor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/photor/32/14343_2.png) [@photor](https://discourse.julialang.org/u/photor)\
**Post date:** [March 24, 2022, 4:17am UTC](https://discourse.julialang.org/t/why-is-there-no-permutedims-dest-src/78320/3 "2022-03-24T04:17:29Z")

</div>

Furthermore, for square matrices there should be an in-place transposition permutedims!(M::Matrix).
