Constructs a least squares solution for the given linear system
Ax = y using the specified tolerance to compute the
effective rank.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public FloatComplexLeastSquares( FloatComplexMatrix A, FloatComplexVector y, float tolerance ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ A As FloatComplexMatrix, _ y As FloatComplexVector, _ tolerance As Single _ ) |
| Visual C++ |
|---|
public: FloatComplexLeastSquares( FloatComplexMatrix^ A, FloatComplexVector^ y, float tolerance ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.FloatComplexMatrix
The matrix.
- y
- Type: CenterSpace.NMath.Core..::.FloatComplexVector
The right hand side.
- tolerance
- Type: System..::.Single
Tolerance used to compute the effective rank of A.
Remarks
The effective rank of A is determined by treating as zero
those singular values that are less than tolerance times the largest
singular value.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the number of rows in A is not equal to the length of y. |
| CenterSpace.NMath.Core..::.InvalidArgumentException | If any entries in the matrix are NaN. |