cond
Condition number for inversion
Syntax
Description
Examples
Input Arguments
Output Arguments
More About
Tips
rcond
is a more efficient, but less reliable, method of estimating the condition of a matrix compared tocond
.
Algorithms
The algorithm for cond
has three pieces:
If
p = 2
, thencond
uses the singular value decomposition provided bysvd
to find the ratio of the largest and smallest singular values.If
p = 1
,Inf
, or'fro'
, thencond
calculates the condition number using the appropriate norm of the input matrix and its inverse withnorm(A,p) * norm(inv(A),p)
.If the input matrix is sparse, then
cond
ignores any specifiedp
value and callscondest
.