Skip to content

Instantly share code, notes, and snippets.

@nthState
Created July 10, 2015 12:25
Show Gist options
  • Save nthState/7f839a3c14c326a722bc to your computer and use it in GitHub Desktop.
Save nthState/7f839a3c14c326a722bc to your computer and use it in GitHub Desktop.
Accelerate vDSP_vsmul
let array_size:Int = 6
let input:[Float] = [1,2,3,4,5,6]
var output = [Float](count: array_size, repeatedValue: 0.0)
vDSP_vsmul(input, 1, [5], &output, 5, vDSP_Length(array_size))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment