vSyax(_:_:_:_:)
Multiplies each element of a vector and stores the results in a second vector.
Declaration
func vSyax(_ n: Int32, _ alpha: Float, _ x: UnsafePointer<vFloat>, _ y: UnsafeMutablePointer<vFloat>)Parameters
- n:
Number of elements in vectors
xandy; must be a multiple of 4. - alpha:
Multiplier.
- x:
Source vector with
nelements of typefloat. - y:
Destination vector with
nelements of typefloat.
Discussion
Each element of vector x is multiplied by alpha, and stored in the corresponding element of y.