<!--
{
  "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(_:_:_:)-1xw9b",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@SparseSolve#$@SA@SparseOpaqueSubfactor_Float#$@SA@DenseVector_Float#*v#"
  },
  "title" : "SparseSolve(_:_:_:)"
}
-->

# SparseSolve(_:_:_:)

Solves the equation *Subfactor * X = B* for the vector of single-precision values *X*, in place and without any internal memory allocations.

```
func SparseSolve(_ Subfactor: SparseOpaqueSubfactor_Float, _ XB: DenseVector_Float, _ workspace: UnsafeMutableRawPointer)
```

## Parameters

`Subfactor`

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

`XB`

On input, the vector *B*. On return, the vector *X* overwrites it.

`workspace`

A workspace of size `workspaceRequiredStatic` `+` `workspaceRequiredPerRHS`.

---

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)