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, ifincXis 7, every 7th element is used. - BETA:
Scaling factor for Y.
- Y:
Input vector
Y. - INCY:
Stride within
Y. For example, ifincYis 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
catlas_caxpby(_:_:_:_:_:_:_:)catlas_cset(_:_:_:_:)catlas_daxpby(_:_:_:_:_:_:_:)catlas_dset(_:_:_:_:)catlas_sset(_:_:_:_:)catlas_zaxpby(_:_:_:_:_:_:_:)catlas_zset(_:_:_:_:)cblas_sdot(_:_:_:_:_:)cblas_sdsdot(_:_:_:_:_:_:)cblas_cdotc_sub(_:_:_:_:_:_:)cblas_cdotu_sub(_:_:_:_:_:_:)cblas_ddot(_:_:_:_:_:)cblas_dsdot(_:_:_:_:_:)cblas_zdotc_sub(_:_:_:_:_:_:)cblas_zdotu_sub(_:_:_:_:_:_:)