Contents

catlas_saxpby(_:_:_:_:_:_:_:)

Computes the sum of two vectors, scaling each one separately (single-precision).

Declaration

func catlas_saxpby(_ N: __LAPACK_int, _ ALPHA: Float, _ X: UnsafePointer<Float>?, _ INCX: __LAPACK_int, _ BETA: Float, _ Y: UnsafeMutablePointer<Float>?, _ INCY: __LAPACK_int)

Parameters

  • N:

    Number of elements in the vector.

  • ALPHA:

    Scaling factor for X.

  • X:

    Input vector X.

  • INCX:

    Stride within X. For example, if incX is 7, every 7th element is used.

  • BETA:

    Scaling factor for Y.

  • Y:

    Input vector Y.

  • INCY:

    Stride within Y. For example, if incY is 7, every 7th element is used.

Discussion

On return, the contents of vector Y are replaced with the result.

This function performs the following operation:

Y = (alpha * X) + (beta * Y)

See Also

CATLAS and CBLAS vector functions