MATLAB/octave count number of operations (flops)

后端 未结 2 1858
梦毁少年i
梦毁少年i 2020-12-12 03:26

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

相关标签:
2条回答
  • 2020-12-12 04:13

    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.

    0 讨论(0)
  • 2020-12-12 04:22

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

    0 讨论(0)
提交回复
热议问题