MATLAB: Optimize for ‘double’

arraycodedoubleintegeroptimization

Dear All
I am wondering is there any special optimization in MATLAB for double arrays? I have the feeling that UINT is a little slower than double array, although the reduced memory space is considerable. I need to make a trade off between speed and space now.
Thanks!

Best Answer

These days it is common for CPUs to have faster floating point instructions than integer instructions.
For larger double arrays, I believe the optimized LAPACK or similar libraries may be invoked; I am not sure if those are invoked for other data types.