---
title: "SparseSolve(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/sparsesolve(_:_:)-2oyl1"
---

# SparseSolve(_:_:)

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

## Declaration

```swift
func SparseSolve(_ Subfactor: SparseOpaqueSubfactor_Double, _ XB: DenseMatrix_Double)
```

## Parameters

- `Subfactor`: The Subfactor in Subfactor * X = B that doc://com.apple.accelerate/documentation/Accelerate/SparseCreateSubfactor(_:_:)-49d8w returns.
- `XB`: On input, the matrix B. On return, the matrix X overwrites it.

## See Also

### Matrix-solving functions

- [SparseSolve(_:_:)](accelerate/sparsesolve(_:_:)-2tyws.md)
- [SparseSolve(_:_:_:)](accelerate/sparsesolve(_:_:_:)-1lads.md)
- [SparseSolve(_:_:_:)](accelerate/sparsesolve(_:_:_:)-76z89.md)
