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: 5.1.0.0

Syntax

C#
public float ConditionNumber(
	NormType norm,
	bool estimate
)
Visual Basic (Declaration)
Public Function ConditionNumber ( _
	norm As NormType, _
	estimate As Boolean _
) As Single
Visual C++
public:
float ConditionNumber(
	NormType norm, 
	bool estimate
)

Parameters

norm
Type: CenterSpace.NMath.Core..::.NormType
The norm used to compute the condition number.
estimate
Type: System..::.Boolean
If true, an estimate for the reciprocal condition number rho is computed which is never less than rho and in practice is nearly always less than 10*rho; otherwise, the actual rho is computed.

Remarks

The condition number of a matrix A is:
CopyC#
kappa = ||A|| ||AInv||
where AInv is the inverse of the matrix A. This function returns the reciprical of the condition number, rho = 1/kappa.
Invoking this method with estimate set to true results in better performance.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MatrixNotSquareExceptionThrown if the factored matrix was not square.

See Also