Constructs a least squares solution for the given linear system Ax = y.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public DoubleComplexLeastSquares(
	DoubleComplexMatrix A,
	DoubleComplexVector y
)
Visual Basic (Declaration)
Public Sub New ( _
	A As DoubleComplexMatrix, _
	y As DoubleComplexVector _
)
Visual C++
public:
DoubleComplexLeastSquares(
	DoubleComplexMatrix^ A, 
	DoubleComplexVector^ y
)

Parameters

A
Type: CenterSpace.NMath.Core..::.DoubleComplexMatrix
The matrix.
y
Type: CenterSpace.NMath.Core..::.DoubleComplexVector
The right hand side of the linear system.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the number of rows in A is not equal to the length of y.
CenterSpace.NMath.Core..::.InvalidArgumentExceptionIf any entries in the matrix are NaN.

See Also