mwc-random-accelerate-0.1.0.0: Generate Accelerate arrays filled with high quality pseudorandom numbers

Copyright[2014..2015] Trevor L. McDonell
LicenseBSD3
MaintainerTrevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.System.Random.MWC

Contents

Description

Random number generation backed by MWC.

Synopsis

Generating random arrays

type (:~>) sh e = sh -> GenIO -> IO e Source #

A PRNG from indices to variates

uniform :: (Shape sh, Elt e, Variate e) => sh :~> e Source #

Uniformly distributed random variates.

uniformR :: (Shape sh, Elt e, Variate e) => (e, e) -> sh :~> e Source #

Uniformly distributed random variates in a given range.

randomArray :: (Shape sh, Elt e) => (sh :~> e) -> sh -> IO (Array sh e) Source #

Generate an array of random values. The generator for variates is seeded from the system's fast source of pseudo-random numbers (see: createSystemRandom)

randomArrayWith :: (Shape sh, Elt e) => GenIO -> (sh :~> e) -> sh -> IO (Array sh e) Source #

Generate an array of random values using the supplied generator.

Re-export MWC-Random