I am writing a program to solve a computationally heavy optimization problem. To improve speed I am using mex-files for certain parts of the code.
I know I can in theory