vSzaxpy(_:_:_:_:_:)
Multiplies a vector by a scalar, adds it to a second vector, and stores the result in a third vector.
Declaration
func vSzaxpy(_ n: Int32, _ alpha: Float, _ x: UnsafePointer<vFloat>, _ y: UnsafePointer<vFloat>, _ z: UnsafeMutablePointer<vFloat>)Parameters
- n:
Number of elements in vectors
x,y, andz; must be a multiple of 4. - alpha:
Multiplier.
- x:
Source vector with
nelements of typefloat. - y:
Source vector with
nelements of typefloat. - z:
Source vector with
nelements of typefloat.
Discussion
Each element of vector x is multiplied by alpha, then the corresponding element of yY is added. Results are stored in the corresponding elements of z.