Page 1 of 1

Matlab -> C++ vs. C++

Posted: October 13th, 2004, 9:57 pm
by Droplet
Would appreciate yr help:What would be faster for Quasi MC: Matlab routine (reading pre-generated Sobol sequence from the file) compiled into executable using Matlab compiler toolbox and VC++ 6.0 , or the equivalent routine in C++ compiled directly from C++?Thank you, DROPlet

Matlab -> C++ vs. C++

Posted: October 14th, 2004, 7:37 am
by hmerkinger
The Matlab compiler produces executables from m-code. In my experience its mainbenefit is not speed improvement but solving the redistribution issue.Speed improvements are normally very modest, depending on code. You will almost always achieve better speed coding directly in C++, except for caseswhere your C++ code cannot keep up with Matlab's highly-optimized array-routines.Also do not expect that you will see a neat translation of your m-code(and depending Matlab commands called from within) to C++ by using thecompiler. You will get code that is good for compiling but not for directlyusing it.HTH,Hans-Marc

Matlab -> C++ vs. C++

Posted: October 5th, 2005, 3:17 pm
by Dostoevsky
QuoteWhat would be faster for Quasi MC: Matlab routine (reading pre-generated Sobol sequence from the file) compiled into executable using Matlab compiler toolbox and VC++ 6.0 , or the equivalent routine in C++ compiled directly from C++?You can get both routines ( developed by Prof. Sobol himself ) from BRODA and compare yourself