<!--
{
  "availability" : [
    "Swift: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/matrix_transpose(_:)-71xii",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "s:4simd16matrix_transposeySo0A9_float3x2aSo0A9_float2x3aF"
  },
  "title" : "matrix_transpose(_:)"
}
-->

# matrix_transpose(_:)

Returns the transpose of a matrix.

```
func matrix_transpose(_ x: simd_float2x3) -> float3x2
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)