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 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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the number of rows in A is not equal to the length of y. |