cblas_saxpy(_:_:_:_:_:_:)
Computes a constant times a vector plus a vector (single-precision).
Declaration
func cblas_saxpy(_ N: __LAPACK_int, _ ALPHA: Float, _ X: UnsafePointer<Float>?, _ INCX: __LAPACK_int, _ Y: UnsafeMutablePointer<Float>?, _ INCY: __LAPACK_int)Parameters
- N:
Number of elements in the vectors.
- ALPHA:
Scaling factor for the values in
X. - X:
Input vector
X. - INCX:
Stride within
X. For example, ifincXis 7, every 7th element is used. - 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. The value computed is (alpha * X[i]) + Y[i].
See Also
Single-precision float matrix functions
cblas_sasum(_:_:_:)cblas_scopy(_:_:_:_:_:)cblas_sgbmv(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)cblas_sgemm(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)cblas_sgemv(_:_:_:_:_:_:_:_:_:_:_:_:)cblas_sger(_:_:_:_:_:_:_:_:_:_:)cblas_snrm2(_:_:_:)cblas_srot(_:_:_:_:_:_:_:)cblas_srotg(_:_:_:_:)cblas_srotm(_:_:_:_:_:_:)cblas_srotmg(_:_:_:_:_:)cblas_ssbmv(_:_:_:_:_:_:_:_:_:_:_:_:)cblas_sscal(_:_:_:_:)cblas_sspmv(_:_:_:_:_:_:_:_:_:_:)cblas_sspr(_:_:_:_:_:_:_:)