Skip to content

Instantly share code, notes, and snippets.

@josesoyo
Created November 28, 2016 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josesoyo/b2a77b258b2d7b84973f8c9064e3aa15 to your computer and use it in GitHub Desktop.
Save josesoyo/b2a77b258b2d7b84973f8c9064e3aa15 to your computer and use it in GitHub Desktop.
let ws = WorkSize(262144L) // 2^18
// Define the long Arrays
let A1 = Array.zeroCreate<float32> 262144
let A2 = Array.zeroCreate<float32> 262144 |> Array.mapi(fun i _ -> float32(i))
// Define the short arrays
let amplitudes = [|0.2f;0.5f;0.35f|]
let frequencies = [|1.2f;10.f;52.5f|] // this will be the iters
let phases = [|pi;pi/4.f;1.5f*pi|]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment