Skip to main content

MatrixCondition

MatrixCondition (wave2D, mode)

MatrixCondition returns the estimated reciprocal of the condition number of a 2D square matrix wave2D.

The condition number is the product of the norm of the matrix with the norm of the inverse of the matrix (see details below). The type of norm is determined by the value of the mode parameter. 1-norm is used if mode is 1 and infinity-norm is used otherwise.

The MatrixCondition function was added in Igor Pro 7.00.

Details

The function uses LAPACK routines to estimate the reciprocal condition number by first obaining the norm of the input matrix and then using LU decomposition to obtain the norm of the inverse of the matrix. The estimate returned is

reciprocalCon=1wave2Dwave2D1,\displaystyle { reciprocalCon }=\frac{1}{\| { wave2D } \|*\| { wave2D } ^{-1} \|},

where the norms are selected by the choice of the mode parameter. The 1-norm of matrix A with elements aij is defined as

A1=max1jni=1maij,\displaystyle \|A\|_{1}=\max _{1 \leq j \leq n} \sum_{i=1}^{m}\left|a_{i j}\right|,

and the infinity-norm is defined by

A=max1imj=1naij.\displaystyle \|A\|_{\infty}=\max _{1 \leq i \leq m} \sum_{j=1}^{n}\left|a_{i j}\right| .

The function returns a NaN if there is any error in the input parameters.

References

http://en.wikipedia.org/wiki/Matrix_norm

See Also

MatrixSVD provides a condition number for L2 norm using the ratio of singular values.

The MatrixOp operation for more efficient matrix operations.

Matrix Math Operations for more about Igor's matrix routines.