Computes the reciprocal of the condition number of a given matrix
in the specified norm type.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static float ConditionNumber( FloatMatrix A, NormType norm ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function ConditionNumber ( _ A As FloatMatrix, _ norm As NormType _ ) As Single |
| Visual C++ |
|---|
public: static float ConditionNumber( FloatMatrix^ A, NormType norm ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.FloatMatrix
A matrix.
- norm
- Type: CenterSpace.NMath.Core..::.NormType
The norm used to compute the condition number.
Return Value
The reciprocal of the condition number of the matrix A.
Remarks
The condition number of
A is:
CopyC#
where AInv is the inverse of the
matrix A. This function returns rho = 1/kappa.
If you only need an estimate of the condition number, which is faster to compute, use NMathFunctions.EstimateConditionNumber.
kappa = ||A|| ||AInv||
If you only need an estimate of the condition number, which is faster to compute, use NMathFunctions.EstimateConditionNumber.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MatrixNotSquareException | Thrown if the factored matrix is not square. |