<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseOpaquePreconditioner_Float/init(type:mem:apply:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So32SparseOpaquePreconditioner_Floata4type3mem5applyABSo0aC2_ta_SvySv_So15CBLAS_TRANSPOSEVSo012DenseMatrix_D0aAKtXCtcfc"
  },
  "title" : "init(type:mem:apply:)"
}
-->

# init(type:mem:apply:)

Creates a new single-precision preconditioner.

```
init(type: SparsePreconditioner_t, mem: UnsafeMutableRawPointer, apply: (UnsafeMutableRawPointer, CBLAS_TRANSPOSE, DenseMatrix_Float, DenseMatrix_Float) -> Void)
```

## Parameters

`type`

The preconditioner type.

`mem`

The unaltered memory pointer that passes as the first parameter of the `apply` function.

`apply`

A function that calculates *Y = PX*, where *P* is 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)