VTK
Functions
Random.h File Reference
#include <optixu/optixu_math_namespace.h>
Include dependency graph for Random.h:

Go to the source code of this file.

Functions

template<unsigned int N>
static __host__ __device__ __inline__ unsigned int tea (unsigned int val0, unsigned int val1)
 
static __host__ __device__ __inline__ unsigned int lcg (unsigned int &prev)
 
static __host__ __device__ __inline__ unsigned int lcg2 (unsigned int &prev)
 
static __host__ __device__ __inline__ float rnd (unsigned int &prev)
 
static __host__ __inline__ unsigned int mwc ()
 
static __host__ __inline__ unsigned int random1u ()
 
static __host__ __inline__ optix::uint2 random2u ()
 
static __host__ __inline__ void fillRandBuffer (unsigned int *seeds, unsigned int N)
 
static __host__ __device__ __inline__ unsigned int rot_seed (unsigned int seed, unsigned int frame)
 

Function Documentation

template<unsigned int N>
static __host__ __device__ __inline__ unsigned int tea ( unsigned int  val0,
unsigned int  val1 
)
static

Definition at line 32 of file Random.h.

static __host__ __device__ __inline__ unsigned int lcg ( unsigned int prev)
static

Definition at line 49 of file Random.h.

static __host__ __device__ __inline__ unsigned int lcg2 ( unsigned int prev)
static

Definition at line 57 of file Random.h.

static __host__ __device__ __inline__ float rnd ( unsigned int prev)
static

Definition at line 64 of file Random.h.

static __host__ __inline__ unsigned int mwc ( )
static

Definition at line 70 of file Random.h.

static __host__ __inline__ unsigned int random1u ( )
static

Definition at line 98 of file Random.h.

static __host__ __inline__ optix::uint2 random2u ( )
static

Definition at line 107 of file Random.h.

static __host__ __inline__ void fillRandBuffer ( unsigned int seeds,
unsigned int  N 
)
static

Definition at line 112 of file Random.h.

static __host__ __device__ __inline__ unsigned int rot_seed ( unsigned int  seed,
unsigned int  frame 
)
static

Definition at line 118 of file Random.h.