LinearOperator<T>.LeastSquaresSolveInto Method

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

LeastSquaresSolveInto(Matrix<T>, Matrix<T>) Solves a system of equations defined by the matrix and multiple right-hand sides in the least squares sense.
LeastSquaresSolveInto(Vector<T>, Vector<T>) Solves a system of equations defined by the matrix and the specified right-hand side in the least squares sense.

LeastSquaresSolveInto(Matrix<T>, Matrix<T>)

Solves a system of equations defined by the matrix and multiple right-hand sides in the least squares sense.
C#
public virtual Matrix<T> LeastSquaresSolveInto(
	Matrix<T> rightHandSide,
	Matrix<T>? result
)

Parameters

rightHandSide  Matrix<T>
A matrix whose columns contain the right-hand sides.
result  Matrix<T>
The vector that is to hold the result. May be null.

Return Value

Matrix<T>

The solution of the system of equations defined by this instance and rightHandSide.

Exceptions

ArgumentNullException

rightHandSide is null.

LeastSquaresSolveInto(Vector<T>, Vector<T>)

Solves a system of equations defined by the matrix and the specified right-hand side in the least squares sense.
C#
public abstract Vector<T> LeastSquaresSolveInto(
	Vector<T> rightHandSide,
	Vector<T>? result
)

Parameters

rightHandSide  Vector<T>
A vector that contains the right-hand side.
result  Vector<T>
The vector that is to hold the result. May be null.

Return Value

Vector<T>

The solution of the system of equations defined by this instance and rightHandSide.

Exceptions

ArgumentNullException

rightHandSide is null.

See Also