---
title: "SparseCreatePreconditioner(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/sparsecreatepreconditioner(_:_:)-95u9p"
---

# SparseCreatePreconditioner(_:_:)

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

## Declaration

```swift
func SparseCreatePreconditioner(_ type: SparsePreconditioner_t, _ A: SparseMatrix_Complex_Float) -> SparseOpaquePreconditioner_Complex_Float
```

## Parameters

- `type`: (Input) The type of preconditioner to create.
- `A`: (Input) The matrix to construct a preconditioner for.

## Return Value

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

## See Also

### Creating preconditioners

- [SparseCreatePreconditioner(_:_:)](accelerate/sparsecreatepreconditioner(_:_:)-4ysww.md)
- [SparseCreatePreconditioner(_:_:)](accelerate/sparsecreatepreconditioner(_:_:)-59ql5.md)
- [SparseOpaquePreconditioner_Double](accelerate/sparseopaquepreconditioner_double.md)
- [SparseOpaquePreconditioner_Float](accelerate/sparseopaquepreconditioner_float.md)
- [SparseCreatePreconditioner(_:_:)](accelerate/sparsecreatepreconditioner(_:_:)-1yp4n.md)
