Solves the system of linear equations for the specified
right-hand side dense vector in the least squares sense and optionally
overwrites the right-hand side with the solution.
Namespace:
Extreme.Mathematics.LinearAlgebra
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<T> LeastSquaresSolve(
DenseVector<T> rightHandSide,
bool overwrite
)
Public Function LeastSquaresSolve (
rightHandSide As DenseVector(Of T),
overwrite As Boolean
) As Vector(Of T)
public:
Vector<T>^ LeastSquaresSolve(
DenseVector<T>^ rightHandSide,
bool overwrite
)
member LeastSquaresSolve :
rightHandSide : DenseVector<'T> *
overwrite : bool -> Vector<'T>
Parameters
- rightHandSide
- Type: Extreme.Mathematics.LinearAlgebraDenseVectorT
A VectorT. - overwrite
- Type: SystemBoolean
If ,
a new VectorT instance containing the solution
to the system of equations is returned. If ,
the vector rightHandSide is overwritten by
the solution.
Return Value
Type:
VectorTA
DenseVectorT containing the solution
of the system of simultaneous linear equations.
Reference