Contents

cblas_sger(_:_:_:_:_:_:_:_:_:_:)

Multiplies vector X by the transpose of vector Y, then adds matrix A (single precison).

Declaration

func cblas_sger(_ ORDER: CBLAS_ORDER, _ M: __LAPACK_int, _ N: __LAPACK_int, _ ALPHA: Float, _ X: UnsafePointer<Float>?, _ INCX: __LAPACK_int, _ Y: UnsafePointer<Float>?, _ INCY: __LAPACK_int, _ A: UnsafeMutablePointer<Float>?, _ LDA: __LAPACK_int)

Parameters

  • ORDER:

    Specifies row-major (C) or column-major (Fortran) data ordering.

  • M:

    Number of rows in matrix A.

  • N:

    Number of columns in matrix A.

  • ALPHA:

    Scaling factor for vector X.

  • X:

    Vector X.

  • INCX:

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

  • Y:

    Vector Y.

  • INCY:

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

  • A:

    Matrix A.

  • LDA:

    Leading dimension of array containing matrix A.

Discussion

Computes alpha*x*y' + A.

See Also

Single-precision float matrix functions