Function

SparseSolve

Solves the equation Factored * x = b for the vector of single-precision values x in place, and without any internal memory allocations.

Declaration

void SparseSolve(SparseOpaqueFactorization_Float Factored, DenseVector_Float xb, void *workspace);

Parameters

Factored

The factored matrix to solve.

xb

On input, the vector b. On return it is overwritten with the vector x. If A has dimension m x n, then this parameter must have length k, where k = max(m,n).

workspace

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 SparseFactorizationCholeskyAtA, the factorization is in fact of AA, so the solution returned is for the system AAX = B.

See Also

Direct Solving Functions with User-Defined Workspace

SparseSolve

Solves the equation Factored * x = b for the vector of double-precision values x in place, and without any internal memory allocations.

SparseSolve

Solves the equation Factored * x = b for the vector of double-precision values x without any internal memory allocations.

SparseSolve

Solves the equation Factored * x = b for the vector of single-precision values x without any internal memory allocations.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software