Constructs a nonnegative least squares solution for the given linear system
Ax = y.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public FloatNonnegativeLeastSquares( FloatMatrix A, FloatVector y ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ A As FloatMatrix, _ y As FloatVector _ ) |
| Visual C++ |
|---|
public: FloatNonnegativeLeastSquares( FloatMatrix^ A, FloatVector^ y ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.FloatMatrix
The matrix.
- y
- Type: CenterSpace.NMath.Core..::.FloatVector
The right hand side of the linear system.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the number of rows in A is not equal to the length of y. |