Determine whether matrix is ill conditioned
tf = isIllConditioned(
returns
logical dA
)1
(true
) if the original coefficient
matrix A
used to create decomposition dA
is
ill conditioned; otherwise, it returns logical 0
(false
).
The test used depends on the type of decomposition:
'qr'
and 'cod'
decompositions —
The coefficient matrix is ill conditioned if rank(dA) <
min(size(A))
.
All other decompositions — The coefficient matrix is ill conditioned
if rcond(dA) < eps
.
If isIllConditioned
returns logical 1
(true
), then solving a linear system with either
dA\b
or b/dA
displays a warning. Use the
CheckCondition
property of the decomposition object
dA
to turn off these warnings.
isIllConditioned
uses rank and condition number estimates
of the decomposition object. These estimates can differ compared to calling
rank(A)
or rcond(A)
on the coefficient
matrix directly.
decomposition
| rank
| rcond