SSYR2/DSYR2/CHER2/ZHER2 |
Name SSYR2/DSYR2/CHER2/ZHER2
Purpose These subprograms compute the real symmetric or complex Hermitian
A ← αxy* + α yx* + A,
where A is an
The structure of A is indicated by the name of the subprogram used:
SSYR2 | or | DSYR2 | A is a real symmetric matrix |
CHER2 | or | ZHER2 | A is a complex Hermitian matrix |
Refer to “F_SSYR2/F_DSYR2/F_CSYR2/F_ZSYR2” on page 394, and “F_CHER2/F_ZHER2” on page 346 for equivalent BLAS Standard subprograms.
Matrix Because either triangle of A can be obtained from the other, these subprograms
Storage reference and apply the update to only one triangle of A. You can supply either the upper or the lower triangle of A, in a
Usage VECLIB:
CHARACTER*1 | uplo |
INTEGER*4 | n, lda, incx, incy |
REAL*4 | alpha, a(lda, n), x(lenx), y(leny) |
CALL SSYR2(uplo, n, alpha, x, incx, y, incy, a, lda)
CHARACTER*1 | uplo |
INTEGER*4 | n, lda, incx, incy |
REAL*8 | alpha, a(lda, n), x(lenx), y(leny) |
CALL DSYR2(uplo, n, alpha, x, incx, y, incy, a, lda)
CHARACTER*1 | uplo |
INTEGER*4 | n, lda, incx, incy |
COMPLEX*8 | alpha, a(lda, n), x(lenx), y(leny) |
CALL CHER2(uplo, n, alpha, x, incx, y, incy, a, lda)
Chapter 3 Basic Matrix Operations 279