[MARK CONFIGURATION FOR MICROSOFT VISUAL STUDIO 2010, C++]
1 . ASSUME MEX SETUP HAS BEEN CONFIGURED.
2 . ADD SET COMPFLAGS = …/OPENMP TO mexopts.bat
3 . ADD #INCLUDE ‘OMP.H’
although matlab is faster than openmp on matrix multiplications, however, for other manipulation of matrices, openmp maybe is a better way to speed up the program.
A good benchmark for matrix multiplication is here.