rank() computation cost

조회 수: 2 (최근 30일)
Nicolas Mira Gebauer
Nicolas Mira Gebauer 2021년 11월 30일
댓글: Walter Roberson 2021년 12월 6일
Hi, does anyone knows which is the computational cost of getting the rank of a matrix through the rank(M) command? (It would be extremelly usefull to have the order of the command using the Big O notation.
Thank you in advance!
Nicolas

채택된 답변

Shanmukha Voggu
Shanmukha Voggu 2021년 12월 3일
편집: Shanmukha Voggu 2021년 12월 3일
Hi Nicholas,
The Computational Complexity of the rank function is equal to svd function.
which is equal to O(max(m, n) * min(m, n)^2), where m and n are number of rows and columns of the matrix respectively
Refer this for more information.
  댓글 수: 5
Nicolas Mira Gebauer
Nicolas Mira Gebauer 2021년 12월 6일
Thank you both for the clarification!
Walter Roberson
Walter Roberson 2021년 12월 6일
I was wondering! max(m, n) *min(m, n) as was posted before is the same as m*n, and I couldn't figure out why someone would bother writing it the long way!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by