Constructs a nonnegative 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 DoubleNonnegativeLeastSquares(
	DoubleMatrix A,
	DoubleVector y
)
Visual Basic (Declaration)
Public Sub New ( _
	A As DoubleMatrix, _
	y As DoubleVector _
)
Visual C++
public:
DoubleNonnegativeLeastSquares(
	DoubleMatrix^ A, 
	DoubleVector^ y
)

Parameters

A
Type: CenterSpace.NMath.Core..::.DoubleMatrix
The matrix.
y
Type: CenterSpace.NMath.Core..::.DoubleVector
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.

See Also