<!--
{
  "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/SparseSolve(_:_:_:)-g0wb",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseSolve#$@SA@SparseOpaqueSubfactor_Double#$@SA@DenseVector_Double#S1_#"
  },
  "title" : "SparseSolve(_:_:_:)"
}
-->

# SparseSolve(_:_:_:)

Solves the equation *Subfactor * X = B* in place for the vector of double-precision values *X*.

```
func SparseSolve(_ Subfactor: SparseOpaqueSubfactor_Double, _ B: DenseVector_Double, _ X: DenseVector_Double)
```

## Parameters

`Subfactor`

The *Subfactor* in *Subfactor* ** X = B* that [`SparseCreateSubfactor(_:_:)`](/documentation/Accelerate/SparseCreateSubfactor(_:_:)-49d8w) returns.

`B`

The vector *B*.

`X`

The vector *X*.

## Discussion

---

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)