Rank: 62809 based on 0 downloads (last 30 days) and 0 files submitted
photo

Fabio Veronese

E-mail
Company/University
Politecnico di Milano

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Fabio
Updated File Comments Rating
19 Mar 2010 MTIMESX - Fast Matrix Multiply with Multi-Dimensional Support Beats MATLAB 300% - 400% in some cases ... really! Author: James Tursa

Great job!
Thanks to mtimesx I changed a huge for loop to 3D matrix computation, reducing script execution time from 14 s to 1.5 s!

Tested and compiled on Gentoo Linux (64bit) 2.6.33 on amd64 system. Compiling with gcc 4.3.* (not the deprecated 4.2 as suggested by Mathworks) I had to delete all quotes from C code files. Probably "//" sequence is not friendly to newer gcc compiler, maybe you can replace it with " /*quote*/ " wich is correctly ignored. Also to successfully compile I had to use:

mex('-DDEFINEUNIX','-largeArrayDims', '-lmwblas','mtimesx.c')

wich is something different from default. Both '-lmwlapack', '-lmwblas' are the options suggested for compiling in UNIX systems (see "Building MEX-Files" in doc), but that was enough. I can say it works correctly, but I didn't run the benchmarks files.

Hope this helps!
Feel free to ask if some testing on LINUX 64bit is needed. I'm going to run tests soon.

Contact us at files@mathworks.com