Contents

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, and z; must be a multiple of 4.

  • alpha:

    Multiplier.

  • x:

    Source vector with n elements of type float.

  • y:

    Source vector with n elements of type float.

  • z:

    Source vector with n elements of type float.

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.

See Also

Vector-Scalar Linear Algebra Functions (from vectorOps.h)