Returns the solution to the least-squares problem Ax = b.
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public double[] Solve(
double[] b
)
Public Function Solve (
b As Double()
) As Double()
public:
array<double>^ Solve(
array<double>^ b
)
member Solve :
b : float[] -> float[]
Parameters
- b
- Type: SystemDouble
A double array to be manipulated.
Return Value
Type:
Double
A
double array containing the solution vector to Ax = b with
components corresponding to the unused columns set to zero.
Exceptions Exception | Condition |
---|
SingularMatrixException |
is thrown when the upper triangular matrix R resulting from the QR
factorization is singular
|
See Also