Page 13 of 13

Re: Using Quantlib

Posted: December 29th, 2017, 11:35 am
by Cuchulainn
What?? That's a crazy argument!

Static const table??
Yep! Boost Ziggurat uses static arrays! I think you have some reading up to do. Google the article by Efraim Shmerling.

And it's in Boost Random library source.. it's got 2 const static arrays, check it out.

Re: Using Quantlib

Posted: December 29th, 2017, 12:05 pm
by outrun
What?? That's a crazy argument!

Static const table??
Yep! Boost Ziggurat uses static arrays! I think you have some reading up to do. Google the article by Efraim Shmerling.

And it's in Boost Random library source.. it's got 2 const static arrays, check it out.
Yes I know, that was my point. So, the problem you mentioned ("However, ziggurat algorithm requires generation of tables at the preliminary setup stage which is time-expensive. ") was the time it took to compute the static arrays while coding it up? Tsk.