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

# SparseSolve(_:_:_:_:)

Solve the equation Subfactor * x = b for the vector x of complex double values, in place.

## Declaration

```swift
func SparseSolve(_ Subfactor: SparseOpaqueSubfactor_Complex_Double, _ B: DenseVector_Complex_Double, _ X: DenseVector_Complex_Double, _ workspace: UnsafeMutableRawPointer)
```

## Parameters

- `Subfactor`: (Input) The subfactor to solve a system involving, as returned by SparseCreateSubfactor().
- `workspace`: (Scratch) A workspace of size Subfactor.workspaceRequiredStatic + 1*Subfactor.workspaceRequiredPerRHS * 2. This memory must be 16-byte aligned (any allocation returned by malloc() has this property).

## See Also

### Complex subfactor-solving functions

- [SparseSolve(_:_:)](accelerate/sparsesolve(_:_:)-3x0vj.md)
- [SparseSolve(_:_:)](accelerate/sparsesolve(_:_:)-4fydu.md)
- [SparseSolve(_:_:)](accelerate/sparsesolve(_:_:)-78cl0.md)
- [SparseSolve(_:_:)](accelerate/sparsesolve(_:_:)-879na.md)
- [SparseSolve(_:_:_:)](accelerate/sparsesolve(_:_:_:)-2qlwo.md)
- [SparseSolve(_:_:_:_:)](accelerate/sparsesolve(_:_:_:_:)-5stp5.md)
- [SparseSolve(_:_:_:_:)](accelerate/sparsesolve(_:_:_:_:)-6afcf.md)
- [SparseSolve(_:_:_:_:)](accelerate/sparsesolve(_:_:_:_:)-9xxqn.md)
