This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: faster log factorials


James Theiler writes:
 > That is, Lookup is 7x faster than Stirling, which in turn is 3x faster
 > than Lanczos.  To my mind, this is an argument in favor of running up
 > the upper bound on the table for log(n!); further, whenever n exceeds
 > whatever upper bound we choose, we should use Stirling instead of
 > Lanczos for the large n result.

A version with a larger lookup table could go in the new contrib/
directory.  Some people might want to optimise for space instead of
speed.

I think 170 is a good natural limit.  

-- 
Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]