---
title: "init(reportError:maxIterations:atol:rtol:reportStatus:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/sparsecgoptions/init(reporterror:maxiterations:atol:rtol:reportstatus:)"
---

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

Returns a new CG options structure using the specified parameters.

## Declaration

```swift
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

Return Value A new CG options structure.

## See Also

### Initializers

- [init()](accelerate/sparsecgoptions/init().md)
