Solves the system of linear equations in the
least-squares sense for the specified
right-hand side Vector and overwrites
the right-hand side with the result.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public MustOverride Function LeastSquaresSolve ( _ rightHandSide As Vector _ ) As GeneralVector |
| C# |
|---|
public abstract GeneralVector LeastSquaresSolve ( Vector rightHandSide ) |
| C++ |
|---|
public: virtual GeneralVector^ LeastSquaresSolve ( Vector^ rightHandSide ) abstract |
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 |
|---|---|
| DimensionMismatchException | The length of rightHandSide does not equal the number of rows in the matrix underlying this system of equations. |