<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseGetTranspose(_:)-227ei",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseGetTranspose#$@SA@SparseMatrix_Double#"
  },
  "title" : "SparseGetTranspose(_:)"
}
-->

# SparseGetTranspose(_:)

Returns a transposed copy of the specified matrix of double-precision, floating-point values.

```
func SparseGetTranspose(_ Matrix: SparseMatrix_Double) -> SparseMatrix_Double
```

## Parameters

`Matrix`

The matrix to transpose.

## Return Value

A [`SparseMatrix_Double`](/documentation/Accelerate/SparseMatrix_Double) structure that represents the transposed matrix.

## Discussion

Use this function to return a new [`SparseMatrix_Double`](/documentation/Accelerate/SparseMatrix_Double) structure that shares underlying storage with the specified matrix, but with its [`transpose`](/documentation/Accelerate/SparseAttributes_t/transpose) attribute as `true`. The system doesn’t reference-count the underlying storage, so you must ensure it doesn’t destroy the original matrix before you finish with the matrix that this routine returns.

---

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)