Prior swift versions: Swift 4.0, one was able to pass an inout [Float] array into the vDSP_zvmags functions however, since updating to Swift 4.2 Xcode 10 is complaining about using the [Float].
self.magnitudes = [Float](repeating: 0.0, count: self.halfSize)
vDSP_zvmags(&(self.complexBuffer!), 1, &self.magnitudes!, 1, UInt(self.halfSize))
The error is on the self.magnitudes parameter:
Cannot convert value of type '[Float]' to expected argument type 'Float'
Running this code on Xcode 9.4.1 - Swift 4.1 works, but Xcode 10.1 - Swift 4.2 has an error.
Could someone please help shed some light on this?