0

Matlab is an efficeve tool to do numerical experiments. Then, I find that many papers like using it to test the Flop Complexity of an algorithm (e.g., regression, svd).

However, as I have learnt from others, Matlab uses Intel MKL for Matrix Multiplication. This is highly optimized code taking advantage of all the cores and their Vector Processing Units (SSE / AVX), and optimized for the cache layout in the CPU.

This means directly using Matlab cannot truly test flops complexity.

My question is then: how to disable MKL or something eles in Matlab in order to test the Flop Complexity of an algorithm?

olivia
  • 381
  • 3
  • 14
  • 1
    Possible duplicate of [How to avoid the 'code optimization' in operations like matrix multiplication?](http://stackoverflow.com/questions/36963463/how-to-avoid-the-code-optimization-in-operations-like-matrix-multiplication) – dan-man May 03 '16 at 08:39
  • they don't actually count the flops but they are using theoretical worst-case upper bounds – percusse Nov 10 '16 at 22:31

0 Answers0