<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseCGOptions/init(reportError:maxIterations:atol:rtol:reportStatus:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So15SparseCGOptionsa11reportError13maxIterations4atol4rtol0C6StatusABySPys4Int8VGXCSg_s5Int32VS2dAKtcfc"
  },
  "title" : "init(reportError:maxIterations:atol:rtol:reportStatus:)"
}
-->

# init(reportError:maxIterations:atol:rtol:reportStatus:)

Returns a new CG options structure using the specified parameters.

```
init(reportError: ((UnsafePointer<CChar>) -> Void)?, maxIterations: Int32, atol: Double, rtol: Double, reportStatus: ((UnsafePointer<CChar>) -> Void)?)
```

## Parameters

`reportError`

An optional error-reporting routine.

`maxIterations`

The maximum number of iterations.

`atol`

The absolute convergence tolerance.

`rtol`

The relative convergence tolerance.

`reportStatus`

The function to report status.

## Return Value

A new CG options structure.

---

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)