clQMC
An OpenCL library for quasi-Monte Carlo methods
Main Page
Related Pages
Files
Examples
DocsTutorial/common.clh
Device code for
Example Model
/*
* Authors:
*
* David Munger <mungerd@iro.umontreal.ca> (2015)
* Pierre L'Ecuyer <lecuyer@iro.umontreal.ca> (2015)
*
*/
#include <
clQMC/clQMC.clh
>
#define DIMENSION 30
clqmc_fptype simulateOneRun(StreamType* stream)
{
clqmc_fptype ret = 1.0;
for
(uint j = 0; j < DIMENSION; j++) {
clqmc_fptype uj = nextCoordinate(stream);
ret *= 3 * uj * uj;
}
return
ret;
}
/*
vim: ft=c
*/
Generated on Thu Mar 3 2016 09:36:53 for clQMC by
1.8.10