Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227851 - [science overlay] sci-mathematics/lib{d,}sfmt (new packages)
Summary: [science overlay] sci-mathematics/lib{d,}sfmt (new packages)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.math.sci.hiroshima-u.ac.jp...
Whiteboard: Science overlay
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2008-06-17 16:35 UTC by Perttu Luukko
Modified: 2022-06-03 02:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libsfmt-1.3.0.ebuild (libsfmt-1.3.0.ebuild,590 bytes, text/plain)
2008-06-17 16:36 UTC, Perttu Luukko
Details
libdsfmt-1.3.1.ebuild (libdsfmt-1.3.1.ebuild,607 bytes, text/plain)
2008-06-17 16:36 UTC, Perttu Luukko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Perttu Luukko 2008-06-17 16:35:17 UTC
From the official site given in the URL:

---- snip -----
SFMT is a new variant of Mersenne Twister (MT) introduced by Mutsuo Saito and Makoto Matsumoto in 2006. The algorithm was reported at MCQMC 2006.  The article will apper in the proceedings of MCQMC2006. (see Prof. Matsumoto's  Papers on random number generation.) SFMT is a Linear Feedbacked Shift Register (LFSR) generator that generates a 128-bit pseudorandom integer at one step. SFMT is designed with recent parallelism of modern CPUs, such as multi-stage pipelining and SIMD (e.g. 128-bit integer) instructions. It supports 32-bit and 64-bit integers, as well as double precision floating point as output.

SFMT is much faster than MT, in most platforms. Not only the speed, but also the dimensions of equidistributions at v-bit precision are improved. In addition, recovery from 0-excess initial state is much faster. See Master's Thesis of Mutsuo Saito for detail (submitted).
----- snip -------

So SFMT is a nice new RNG and dSFMT is a special version of it for generating doubles directly. Adam Piątyszek has kindly made easy-to-install libraries from the reference implementations of SFMT and dSFMT, and here are the ebuilds for those. The gentoo-science overlay people might be interested about these for Monte Carlo simulations or such.

Reproducible: Always

Steps to Reproduce:
Comment 1 Perttu Luukko 2008-06-17 16:36:16 UTC
Created attachment 157309 [details]
libsfmt-1.3.0.ebuild
Comment 2 Perttu Luukko 2008-06-17 16:36:45 UTC
Created attachment 157311 [details]
libdsfmt-1.3.1.ebuild
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2008-06-19 14:52:34 UTC
In science overlay, thanks for those ebuilds, they were easy to review!
Comment 4 Marek Miller 2008-07-05 19:36:22 UTC
Tested on x86 w/ gcc-4.3.1
Comment 5 Michael Orlitzky gentoo-dev 2022-06-03 02:56:23 UTC
I don't think there's much value to keeping this bug open in 2022. The SFMT is an improvement over the classical MT, but is still previous-generation technology as far as performance and statistical guarantees are concerned.