Serving the Quantitative Finance Community

  • 1
  • 2
  • 3
  • 4
  • 5
  • 8
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 14th, 2013, 2:32 pm

QuoteOriginally posted by: outrun.. I think I've fixed the constructor warning: direct link to version 5 .hpp.. I had to detect if the argument type passed the constructor template had a "generate" member template. Argh!No more Warninx Output in C++ and C# as before! i.e. correct.
Last edited by Cuchulainn on December 13th, 2013, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 14th, 2013, 3:05 pm

Well done. It's awfully compact code in the engine.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 14th, 2013, 3:06 pm

// A good test would be to try it with OpenMP. And here it is:
Last edited by Cuchulainn on December 13th, 2013, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 14th, 2013, 4:46 pm

(double)
Last edited by Cuchulainn on December 13th, 2013, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 14th, 2013, 4:48 pm

QuoteOriginally posted by: outrunCool, very nice! That's quick!I never managed to get openmp working, bit the nice thing is that you can run it on clusters too, right?You know what would also be nice? to have some smart accumulators that are threadsafe and where you can merge multiple accumulators into one. That would allow for tree like aggregation of results.Cluster OpenMPBasically, I just look at my ppt course slides or my online videos check it out http://www.datasimfinancial.com/course_ ... rseId=20In OpenMP you can have thread nesting and named critical sections and reduction variables that should work.Next: that test program with C# multithreading I have a producer-consumer program for RNG (now I can just plug in the sitmo DLL). So, I have a bunch of SDE feeding off of it. Nice?
Last edited by Cuchulainn on December 13th, 2013, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 14th, 2013, 5:56 pm

OpenMP 3.0 reference cardI find 3.0 cool.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 15th, 2013, 11:05 am

Change control request, extra functionsWould it be possible to add extra methods, especially what I needhigh priority uniform. NextDouble(a, b) (a,b]. NextDouble() (0,1]medium/low priority . Next() No hurry.
Last edited by Cuchulainn on December 14th, 2013, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

User feedback Mr. sitmo's prng

December 15th, 2013, 3:26 pm

Wow! I was away for a few hours (watching Dr. Zhivago, such a sad movie ) and look all the new stuff! So, I can now create a class with the same interface as .NET Random. Cool.
Last edited by Cuchulainn on December 14th, 2013, 11:00 pm, edited 1 time in total.