Jump to content

Monte Carlo methods: Difference between revisions

Line 669:
 
<lang Futhark>
includeimport "futlib.numeric/math"
 
default(f32)
Line 710:
let rand_nums = map (sobolIndR (dirvcts())) (iota n)
let dists = map (\xy ->
let (x,y) = (xy[0],xy[1]) in F32f32.sqrt(x*x + y*y))
rand_nums
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.