To Joe Bunda: The included lcc is a C compiler, not a C++ compiler. You need a C++ compiler to compile twister.cpp. I did a quick look at the code and it looks like it wouldn't take much to convert it to a C routine that lcc would accept.
To Peter Perkins: Do you plan on including a C version in a later update for people without a C++ compiler? If not, would you mind if I made a go at it?
Comment only
02 Nov 2006
Mersenne Twister
Mersenne Twister uniform pseudo-random number generator.
Giuppy iuppie
it works for me.
Thanks so much
5
27 Jul 2006
Mersenne Twister
Mersenne Twister uniform pseudo-random number generator.
Joe Bunda
I am using Matlab R2006a in Windows XP x64. When I issue the "mex twister.cpp" command, I receive an error message
Error: Could not detect a compiler on local system which can compile the specified input file(s) at C:\Program files\MATLAB\R2006a/bin
/mexsetup.pm line 540.
I did check the installation to verify that the LCC compiler is installed
Comment only
22 Mar 2005
Mersenne Twister
Mersenne Twister uniform pseudo-random number generator.
Kent Conover
It worked the first time in R14. By my test twister is significantly faster, it requires only 60% of the runtime taken by the Matlab m-file rand();
5
04 Feb 2005
Mersenne Twister
Mersenne Twister uniform pseudo-random number generator.
Steven A.
Thanks for providing this. While the built-in random number generator is more then adequate, this is a great addition for a few reasons. 1. It shows the power of MEX! Very cool indeed. 2. Shows how the Mathworks is on the bleeding edge of technology!
Comment only