MATLAB/octave count number of operations (flops)

此生再无相见时 提交于 2019-12-17 21:35:19

问题


Is it possible to report number of operations to evaluate for example matrix/matrix (dense or sparse) in MATLAB or octave.


回答1:


Haven't tried it personally, but the Lightspeed Matlab Toolbox claims to support flops counting. Apparently the flops command was a valid option in MATLAB up through version 5.




回答2:


Not exactly what you're looking for, but you can use profile to get the cpu time for an operation.



来源:https://stackoverflow.com/questions/2868429/matlab-octave-count-number-of-operations-flops

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!