I have this array of floats created like this
var myArray : [Float] = []
This array has 256 elements, the real part. All imaginary parts are zero.
I need to do a
vDSP_ctoz(anArray, 2, &output, 1, vDSP_Length(n/2))
but this API requires anArray
to be UnsafePointer<DSPComplex>
How I convert myArray
to this format?