what is computational complexity of matrix inversion algorithm in matlab?

what is computational complexity of matrix inversion algorithm in matlab? It's not listed in the help files as far as I can tell.

回答 (3 件)

the cyclist
the cyclist 2011 年 7 月 28 日

1 投票

This page lists the computational complexity of three different matrix inversion algorithms:
I have not yet found which of the three algorithms MATLAB uses for inv() [if, indeed, it uses any of them], but maybe this will help you get one step closer. Also, as Walter pointed out, MATLAB may use a different algorithm depending on the matrix size (or other properties).
the cyclist
the cyclist 2011 年 7 月 28 日

0 投票

Ordinarily, one can use the mlint() function, with the '-cyc' option, to measure the McCabe complexity. However, it seems to me that this will not work for built-in functions like inv().

1 件のコメント

the cyclist
the cyclist 2011 年 7 月 28 日
FYI, my response assumed you were asking for the cyclomatic complexity (http://en.wikipedia.org/wiki/Cyclomatic_complexity) of the program. Seems to me now that you were actually asking about http://en.wikipedia.org/wiki/Computational_complexity_theory. Sorry for any confusion.

サインインしてコメントする。

Walter Roberson
Walter Roberson 2011 年 7 月 28 日

0 投票

It may depend upon the properties of the matrix: specialized matrix forms may have different complexities. It could potentially also depend upon the condition number of the matrix, but I have no evidence of that.
An earlier Question about the computational complexity of eig and pinv went unanswered.

カテゴリ

ヘルプ センター および File ExchangeOperators and Elementary Operations についてさらに検索

質問済み:

2011 年 7 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by