<!--
{
  "availability" : [
    "iOS: 18.5.0 -",
    "iPadOS: 18.5.0 -",
    "macCatalyst: 18.5.0 -",
    "macOS: 15.5.0 -",
    "tvOS: 18.5.0 -",
    "visionOS: 2.5.0 -",
    "watchOS: 11.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseCreatePreconditioner(_:_:)-1yp4n",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseCreatePreconditioner#$@EA@SparsePreconditioner_t#$@SA@SparseMatrix_Complex_Double#"
  },
  "title" : "SparseCreatePreconditioner(_:_:)"
}
-->

# SparseCreatePreconditioner(_:_:)

Create a preconditioner for the given matrix of complex double values.

```
func SparseCreatePreconditioner(_ type: SparsePreconditioner_t, _ A: SparseMatrix_Complex_Double) -> SparseOpaquePreconditioner_Complex_Double
```

## Parameters

`type`

(input) The type of preconditioner to create.

`A`

(input) The matrix to construct a preconditioner for.

## Return Value

The constructed preconditioner object. Resource must be freed
through a call to `SparseCleanup()` once the user is finished with
the preconditioner.

---

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)