Solves the system of linear equations for the specified
right-hand side dense matrix 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 Matrix<T> LeastSquaresSolve(
DenseMatrix<T> rightHandSide,
bool overwrite
)
Public Function LeastSquaresSolve (
rightHandSide As DenseMatrix(Of T),
overwrite As Boolean
) As Matrix(Of T)
public:
Matrix<T>^ LeastSquaresSolve(
DenseMatrix<T>^ rightHandSide,
bool overwrite
)
member LeastSquaresSolve :
rightHandSide : DenseMatrix<'T> *
overwrite : bool -> Matrix<'T>
Parameters
- rightHandSide
- Type: Extreme.Mathematics.LinearAlgebraDenseMatrixT
A DenseMatrixT. - overwrite
- Type: SystemBoolean
If ,
a new DenseMatrixT instance containing the solution
to the system of equations is returned. (This is the default.)
If , the matrix rightHandSide
is overwritten by the solution.
Return Value
Type:
MatrixTA
DenseMatrixT containing the solution
of the system of simultaneous linear equations.
Note that the first parameter must be a
DenseMatrixT. This is
because this is the only matrix type whose elements are
guaranteed to be all writable.
Reference