<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseLSMROptions/maxIterations",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@SparseLSMROptions@FI@maxIterations"
  },
  "title" : "maxIterations"
}
-->

# maxIterations

The maximum number of iterations.

```
var maxIterations: Int32
```

## Discussion

If [`maxIterations`](/documentation/Accelerate/SparseLSMROptions/maxIterations) is less than `0`, the operation uses a default value of `4n`. However, if a good preconditioner is available or the matrix is well-conditioned such that singular values cluster, a value of `n/2` may be more appropriate.

---

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)