Skip to content

Instantly share code, notes, and snippets.

@dboyliao
Last active January 4, 2016 02:40
Show Gist options
  • Save dboyliao/ba444b148d29f92640ce to your computer and use it in GitHub Desktop.
Save dboyliao/ba444b148d29f92640ce to your computer and use it in GitHub Desktop.
import Accelerate
var realp = [Float]([1, 2, 3])
var imagp = [Float]([4, 5, 6])
var z = DSPSplitComplex(realp: &realp, imagp: &imagp)
// vDSP_ctoz(x, 2, &z, 1, vDSP_Length(6))
for i in 0..<12 {
print(z.realp[i])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment