name: mersenne-random-pure64
version: 0.2.0.3
homepage: http://code.haskell.org/~dons/code/mersenne-random-pure64/
synopsis: Generate high quality pseudorandom numbers purely using a Mersenne Twister
description:
The Mersenne twister is a pseudorandom number generator developed by
Makoto Matsumoto and Takuji Nishimura that is based on a matrix linear
recurrence over a finite binary field. It provides for fast generation
of very high quality pseudorandom numbers. The source for the C code
can be found here:
.
.
This library provides a purely functional binding to the 64 bit
classic mersenne twister, along with instances of RandomGen, so the
generator can be used with System.Random. The generator should
typically be a few times faster than the default StdGen (but a tad
slower than the impure 'mersenne-random' library based on SIMD
instructions and destructive state updates.
.
category: Math, System
license: BSD3
license-file: LICENSE
copyright: (c) 2008. Don Stewart
author: Don Stewart
maintainer: Don Stewart
cabal-version: >= 1.2.0
build-type: Simple
tested-with: GHC == 6.8.3
flag small_base
description: Build with new smaller base library
default: False
library
exposed-modules: System.Random.Mersenne.Pure64
System.Random.Mersenne.Pure64.Base
System.Random.Mersenne.Pure64.MTBlock
extensions: CPP, ForeignFunctionInterface
if flag(small_base)
build-depends: base < 3
else
build-depends: base >= 3 && < 6, old-time, random
cc-options:
-O3 -finline-functions -fomit-frame-pointer
-fno-strict-aliasing --param max-inline-insns-single=1800
ghc-options: -Wall -O2 -fexcess-precision
c-sources: cbits/mt19937-64.c
cbits/mt19937-64-unsafe.c
cbits/mt19937-64-block.c
include-dirs: include
includes:
install-includes: mt19937-64.h
mt19937-64-unsafe.h
mt19937-64-block.h