LinearOperator<T>.LeastSquaresSolve(Vector<T>) Method

Solves the system of linear equations for the specified right-hand side vector.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Vector<T> LeastSquaresSolve(
	Vector<T> rightHandSide
)

Parameters

rightHandSide  Vector<T>
A Vector<T>.

Return Value

Vector<T>
A DenseVector<T> containing the solution of the system of simultaneous linear equations.

Exceptions

ArgumentNullExceptionrightHandSide is null.
DimensionMismatchExceptionThe length of rightHandSide does not equal the number of rows in the matrix underlying this system of equations.
MatrixSingularExceptionThe Matrix<T> underlying this system of equations is singular and does not have an inverse.
DimensionMismatchExceptionThe Matrix<T> underlying this system of equations is not square.

See Also