Contents

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

  • alpha:

    Multiplier.

  • x:

    Source vector with n elements of type float.

  • y:

    Destination vector with n elements of type float.

Discussion

Each element of vector x is multiplied by alpha, and stored in the corresponding element of y.

See Also

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