Click or drag to resize

NMathFunctionsConditionNumber(FloatComplexMatrix, NormType) Method

Computes the reciprocal of the condition number of a given matrix in the specified norm type.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static float ConditionNumber(
	FloatComplexMatrix A,
	NormType norm
)

Parameters

A  FloatComplexMatrix
A matrix.
norm  NormType
The norm used to compute the condition number.

Return Value

Single
The reciprocal of the condition number of the matrix A.
Exceptions
ExceptionCondition
MatrixNotSquareExceptionThrown if the factored matrix is not square.
Remarks
The condition number of A is:
C#
kappa = ||A|| ||AInv||
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.
See Also