Solves the equation Factored * x = b for the vector of double-precision values x.
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 Vector _Double b, Dense Vector _Double x);
Parameters
Factored
The factored matrix to solve.
b
The vector b.
x
The vector x.
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 arg 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.