Contents

vSaxpy(_:_:_:_:)

Multiplies a vector by a scalar , adds it to a second vector , and stores the result in the second vector.

Declaration

func vSaxpy(_ n: Int32, _ alpha: Float, _ x: UnsafePointer<vFloat>, _ y: UnsafeMutablePointer<vFloat>)

Parameters

  • n:

    Number of elements in each of the vectors x and y; must be a multiple of 4.

  • alpha:

    A multiplier for the vector x.

  • x:

    A vector array of float values.

  • y:

    A second vector array of float values.

Discussion

The elements of x are multiplied by alpha and added to the corresponding elements of y. The results are stored in y.

See Also

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