Solves the system AX = B for X, using the supplied double-precision factorization of A, and without any internal memory allocations.
SDKs
- iOS 11+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11+
- watchOS 4+
Framework
- Accelerate
Declaration
void SparseSolve(Sparse Opaque Factorization _Double Factored, Dense Matrix _Double B, Dense Matrix _Double X, void *workspace);
Parameters
Factored
Factorization of A.
B
The right-hand side, B.
X
Matrix in which to return solutions.
workspace
Scratch space of size
solve
Workspace Required Static +
nrhs
*
solve
, whereWorkspace Required Per RHS 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 Sparse
, the factorization is in fact of AᵀA, so the solution returned is for the system AᵀAX = B.