| MATLAB Function Reference | ![]() |
與可逆(inversion)相關的情況數(condition number)。
Syntax
c = cond(X)
c = cond(X,p)
Description
一個矩陣的情況數(condition number)測量一個線性方程式系統(a system of linear equations ),其答案對於資料上錯誤情況的靈敏度(sensitivity)或影響度。而情況數(condition number)則會對於矩陣反轉(inversion)的結果和線性方程式解的正確性給予指示(indication)。cond(X)和cond(X,p)的值接近1則表示是一個好-情況(well-conditioned)的矩陣。
c = cond(X)
傳回2-範模(2-norm)的情況數(condition number),為X的最大奇異值和最小奇異值得比值。
c = cond(X, 傳回矩陣在p)
p-範模(norm)的情況數(condition number):
norm(X,p) * norm(inv(X),p
如果p是… |
則cond(X,p)傳回… |
1 |
1-範模(norm)情況數(condition number) |
2 |
2-範模(norm)情況數(condition number) |
'fro' |
弗羅賓尼斯(Frobenius)範模(norm)情況數(condition number) |
inf |
無限範模(norm)情況數(condition number) |
Algorithm
cond的演算法(當p = 2的時候)使用了奇異值的拆解函數:svd。
See Also
condeig, condest, norm, normest, rank, rcond, svd
References
[1] Anderson, E., Z. Bai, C. Bischof, S. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen, LAPACK User's Guide, Third Edition, SIAM, Philadelphia, 1999.
| computer | condeig | ![]() |