Contents

cblas_sscal(_:_:_:_:)

Multiplies each element of a vector by a constant (single-precision).

Declaration

func cblas_sscal(_ N: __LAPACK_int, _ ALPHA: Float, _ X: UnsafeMutablePointer<Float>?, _ INCX: __LAPACK_int)

Parameters

  • N:

    Number of elements to scale.

  • ALPHA:

    The constant to multiply by.

  • X:

    Vector x.

  • INCX:

    Stride within X. For example, if incX is 7, every 7th element is multiplied by alpha.

Discussion

See Also

Single-precision float matrix functions