About counting flops for matrix multiplication

How can I count flops for matrix multiplication? Should I use timing function or others?
Thank you!

 采纳的回答

This function from the File Exchange claims to do this. (I've never used it, so I cannot vouch for it.)

1 个评论

Writing that took some dedication!
Note to Bo Wang: You cannot count flops by timing on any modern system. It has been effectively impossible since the first RISC CPU came out, if not earlier. And that was decades ago, the Sun SPARC or earlier. 1981 is sometimes given as the date after which flops became meaningless.

请先登录,再进行评论。

更多回答(0 个)

类别

Community Treasure Hunt

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

Start Hunting!

Translated by