Function

# SparseSolve

Solves the system AX = B for X, using the supplied double-precision factorization of A, in place.

## Parameters

`Factored`

Factorization of A.

`XB`

On entry, the right-hand side, B. On return, the solution vectors X. If A has dimension m x n, then XB must have dimension k x nrhs, where k = max(m,n) and nrhs is the number of right-hand sides to find solutions for.

## Discussion

If the factorization is A = QR and the system is underdetermined, the solution of minimum norm X is returned.

If the factorization is A = QR and the system is overdetermined, the least squares solution argument min AX - B is returned.

In the case of a factorization of type `SparseFactorizationCholeskyAtA`, the factorization is in fact of AA, so the solution returned is for the system AAX = B.

### Direct Solving Functions

`SparseSolve`

Solves the system AX = B for X, using the supplied single-precision factorization of A, in place.

`SparseSolve`

Solves the system AX = B for X, using the supplied double-precision factorization of A.

`SparseSolve`

Solves the system AX = B for X, using the supplied single-precision factorization of A.