Re: Sobol skipTo()

Posted by Fabien Le Floc'h-3 on
URL: http://quantlib.414.s1.nabble.com/Correlation-Matrix-tp36p39.html

Sorry for the annoyance, it's a mistake in my test, QL code is correct.

Le 01/02/2011 18:37, Fabien Le Floc'h a écrit :

> Hello,
>
> I believe there might be a small mistake in Quantlib 1.01 sobolrsg.cpp
> SobolRsg::skipTo method. The method starts with:
>   void SobolRsg::skipTo(unsigned long skip) {
>         unsigned long N = skip+1;
>         unsigned int ops = (unsigned int)(std::log((double)N)/M_LN2)+1;
>
> It should be:
>   void SobolRsg::skipTo(unsigned long skip) {
>         unsigned long N = skip<<1;
>         unsigned int ops = (unsigned int)(std::log((double)N)/M_LN2)+1;
>
> Regards,
>
> Fabien Le Floc'h.
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users


--
Fabien LE FLOC'H
Financial Engineer
.................................................
C A L Y P S O
106-108 rue de la Boétie 75008 Paris
OFFICE   +33 (0)1 44 50 01 84
FAX       +33 (0)1 44 50 12 84
.................................................


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users