---
title: maxIterations
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/sparsecgoptions/maxiterations
---

# maxIterations

The maximum number of iterations to perform.

## Declaration

```swift
var maxIterations: Int32
```

## Discussion

Discussion If 0, the operation uses the default value of 100.

## See Also

### Inspecting CG Options

- [atol](accelerate/sparsecgoptions/atol.md)
- [reportError](accelerate/sparsecgoptions/reporterror.md)
- [reportStatus](accelerate/sparsecgoptions/reportstatus.md)
- [rtol](accelerate/sparsecgoptions/rtol.md)
