<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseGetStateSize_Double(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseGetStateSize_Double#$@SA@SparseIterativeMethod#b#I#I#I#"
  },
  "title" : "SparseGetStateSize_Double(_:_:_:_:_:)"
}
-->

# SparseGetStateSize_Double(_:_:_:_:_:)

Returns the size in bytes necessary for a call to the double-precision sparse iterate method.

```
func SparseGetStateSize_Double(_ method: SparseIterativeMethod, _ preconditioner: Bool, _ m: Int32, _ n: Int32, _ nrhs: Int32) -> Int
```

## Parameters

`method`

The method to return required state space size for.

`preconditioner`

Set to `true` if your subsequent calls to `SparseIterate` use a preconditioner.

`m`

The number of rows in matrix *A*.

`n`

The number of columns in matrix *A*.

`nrhs`

The number of columns in matrices *B* and *X*.

## Return Value

The size of the required state space, in bytes.

---

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)