SparseSolve(_:_:)
Solves the system AX=B for X, using the supplied SparseOpaqueFactorization_Complex_Float of A, in place.
Declaration
func SparseSolve(_ Factored: SparseOpaqueFactorization_Complex_Float, _ XB: DenseMatrix_Complex_Float)Parameters
- Factored:
A factorization of
A. - XB:
On entry, the right-hand sides
B. On return, the solution vectorsX. IfAhas dimensionm x n, thenXBmust have dimensionk x nrhs, wherek=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 ||_2 is returned. If the factorization is A=QR and the system is overdetermined, the least squares solution arg min_x || Ax - b ||_2 is returned. In the case of a factorization of type=SparseCholeskyAtA, the factorization is in fact of A^T A, so the solution returned is for the system A^TAx=b.