Returns the solution to the least-squares problem Ax = b using an
input tolerance.
Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public double[] Solve( double[] b, double tol ) |
Visual Basic (Declaration) |
---|
Public Function Solve ( _ b As Double(), _ tol As Double _ ) As Double() |
Visual C++ |
---|
public: array<double>^ Solve( array<double>^ b, double tol ) |
Parameters
- b
- Type: array<
System..::.Double
>[]()[]
A double array to be manipulated.
- tol
- Type: System..::.Double
A double scalar value used in determining the rank of A.
Return Value
A double array containing the solution vector to Ax = b with components corresponding to the unused columns set to zero.
Exceptions
Exception | Condition |
---|---|
Imsl.Math..::.SingularMatrixException | is thrown when the upper triangular matrix R resulting from the QR factorization is singular |