Solves the system of linear equations in the
least-squares sense for the specified
right-hand side Vector.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function LeastSquaresSolve ( _ rightHandSide As Vector _ ) As GeneralVector |
| C# |
|---|
public GeneralVector LeastSquaresSolve ( Vector rightHandSide ) |
| C++ |
|---|
public: virtual GeneralVector^ LeastSquaresSolve ( Vector^ rightHandSide ) sealed |
Parameters
- rightHandSide (Extreme.Mathematics.LinearAlgebra.Vector)
- A Vector.
Return Value
A GeneralVector containing the least squares solution of the system of simultaneous linear equations.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | rightHandSide is nullNothingnullptr. |
| DimensionMismatchException | The length of rightHandSide does not equal the number of rows of the matrix. |