Contents

cblas_chpr2(_:_:_:_:_:_:_:_:_:)

Multiplies a vector times the conjugate transpose of a second vector and vice-versa, sums the results, and adds a matrix.

Declaration

func cblas_chpr2(_ ORDER: CBLAS_ORDER, _ UPLO: CBLAS_UPLO, _ N: __LAPACK_int, _ ALPHA: OpaquePointer, _ X: OpaquePointer?, _ INCX: __LAPACK_int, _ Y: OpaquePointer?, _ INCY: __LAPACK_int, _ AP: OpaquePointer?)

Parameters

  • ORDER:

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

  • UPLO:

    Specifies whether to use the upper or lower triangle from the matrix. Valid values are 'U' or 'L'.

  • N:

    Order of matrix A and the number of elements in vectors x and y.

  • ALPHA:

    Scaling factor that vector x is multiplied by.

  • 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.

  • AP:

    Matrix A in packed storage format. Overwritten by the results on return.

Discussion

Calcuates alpha*x*conjg(y') + conjg(alpha)*y*conjg(x') + A, and stores the result in A.

See Also

Single-precision complex matrix functions