How many floating point operations are required for the function "pinv"?

조회 수: 5 (최근 30일)
i want to find pinv of complex correlation matrix of NXN how many addition ,multiplication are required of the number of floating Counts or flops?
  댓글 수: 2
James Tursa
James Tursa 2016년 5월 25일
What do you intend to do with this information? Would timing with tic & toc be more meaningful to you?
Vanita Pawar
Vanita Pawar 2016년 5월 26일
Thank you for your reply. I want to know the actual computational count required for pinv() command.

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

채택된 답변

Steven Lord
Steven Lord 2016년 5월 26일
Read this Cleve's Corner article, particularly the last three paragraphs.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 5월 25일
Is the question about pinv() as implemented by Mathworks, or is the question about how efficiently a Moore-Penrose Pseudo-Inverse could be done in theory? If you are talking about algorithmic complexity rather than about implementation then see http://cs.stackexchange.com/questions/24060/complexity-of-finding-the-pseudoinverse-matrix
  댓글 수: 2
Vanita Pawar
Vanita Pawar 2016년 5월 26일
Thank you for your answer.
Yes, pinv() as implemented by Mathworks. I want to know the actual computational count required for pinv() command.
Walter Roberson
Walter Roberson 2016년 5월 26일
It is not possible to measure that on any modern processor. It has been fundamentally unmeasurable since the introduction of the MIPS R8000 in 1994, which introduced conditional movements and out-of-order execution; the 1996 introduction of the MIPS R10000 chip especially made it really impossible.
For example on modern Intel architectures you need to worry about how to count operations coded as Multiply And Add instructions, or coded as HADDPD (Packed Double-Floating Point Horizontal Add).
The closest you can get is a Cycle Counter. But that is pretty unreliable; see https://software.intel.com/en-us/node/561442

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

카테고리

Help CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by