compute the condition number of a Matrix with respect to a norm
ConditionNumber(A, p, in, c)
(optional) 1, 2, infinity, Euclidean, or Frobenius; norm selector
(optional) equation of the form factors = list where list contains Matrix factors in NAG format as returned by LUDecomposition
(optional) equation of the form conjugate=true or false; specifies if the result in the 2-norm case uses the Hermitian transpose
The ConditionNumber(A) function computes the scalar quantity equal to the condition number of A as Norm⁡A,∞⁢Norm⁡MatrixInverse⁡A,∞.
The ConditionNumber(A, p, c) function computes the scalar quantity equal to the condition number of A as Norm⁡A,p,c⁢Norm⁡MatrixInverse⁡A,p,c.
For floating-point Matrices, the norm of the inverse is computed by using estimates of the norms of the inverses of the triangular factors of the Matrix obtained by LU or Cholesky factorization.
If p is included in the calling sequence, p must be one of 1, 2, infinity, Frobenius, or Euclidean.
If in is included in the calling sequence, then the list must contain the NAG format factors as returned by LUDecomposition; the list items are:
* A list of Vector, Matrix items, [ipiv,LU], for an LU decomposition.
* A list of a Matrix item, [L], for a Cholesky decomposition.
For the 2-norm case, c may be included in the calling sequence to select between the transpose and the Hermitian transpose of A. The 2-norm case can also be specified by using Euclidean.
This function is part of the LinearAlgebra package, and so it can be used in the form ConditionNumber(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[ConditionNumber](..).
A ≔ HilbertMatrix⁡3
B ≔ 3⁢I,−0.1|0,1
To determine the condition number using prefactored LU input:
C ≔ RandomMatrix⁡250,datatype=float8:
v,M ≔ LUDecomposition⁡C,output='NAG':
To determine the condition number using prefactored Cholesky input:
C ≔ Matrix⁡3,3,53,−6,−5,−6,90,34,−5,34,13,shape=symmetric,datatype=float,attributes='positive_definite'
L ≔ LUDecomposition⁡C,output='NAG'
de Boor, Carl. "An Empty Exercise." ACM SIGNUM Newsletter 25, (April 1990): 3-7.
Download Help Document
What kind of issue would you like to report? (Optional)