IMSL C# Numerical Library

QR.Solve Method (Double[])

Returns the solution to the least-squares problem Ax = b.

public double[] Solve(
   double[] b
);

Parameters

b
A double array to be manipulated.

Return Value

A double array containing the solution vector to Ax = b with components corresponding to the unused columns set to zero.

Exceptions

Exception Type Condition
SingularMatrixException is thrown when the upper triangular matrix R resulting from the QR factorization is singular

See Also

QR Class | Imsl.Math Namespace | QR.Solve Overload List