﻿DoubleComplexLUFact.ConditionNumber Method

DoubleComplexLUFactConditionNumber 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 double ConditionNumber(
NormType norm,
bool estimate
)```

Parameters

norm  NormType
The norm used to compute the condition number.
estimate  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.

Return Value

Double
Exceptions
ExceptionCondition
MatrixNotSquareExceptionThrown if the factored matrix was not square.
Remarks
The condition number of a matrix A is:
C#
`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.
See Also