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

# init(reportError:lambda:nvec:convergenceTest:atol:rtol:btol:conditionLimit:maxIterations:reportStatus:)

Returns a new LSMR options structure using the specified parameters.

```
init(reportError: ((UnsafePointer<CChar>) -> Void)?, lambda: Double, nvec: Int32, convergenceTest: SparseLSMRConvergenceTest_t, atol: Double, rtol: Double, btol: Double, conditionLimit: Double, maxIterations: Int32, reportStatus: ((UnsafePointer<CChar>) -> Void)?)
```

## Parameters

`reportError`

An optional status-reporting routine.

`lambda`

The damping parameter lambda for regularized least squares.

`nvec`

The number of vectors to use for local reorthogonalization.

`convergenceTest`

The convergence test to use for iterative solve methods.

`atol`

The absolute tolerance (default test) or *A* tolerance (Fong-Saunders test).

`rtol`

The relative convergence tolerance (default test only).

`btol`

The *B* tolerance (Fong-Saunders test only).

`conditionLimit`

The condition number limit (Fong-Saunders test only).

`maxIterations`

The maximum number of iterations.

`reportStatus`

An optional error-reporting routine.

---

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)