SSPR2/DSPR2/CHPR2/ZHPR2 |
Notes These subprograms conform to specifications of the Level 2 BLAS.
If an error in the arguments is detected, the subprograms call error handler XERBLA, which writes an error message onto the standard error file and terminates execution. The standard version of XERBLA (refer to the end of this chapter) can be replaced with a
uplo ≠ ’L’ or ’l’ or ’U’ or ’u’ n < 0
incx = 0 incy = 0
Actual character arguments in a subroutine call may be longer than the corresponding dummy arguments. Therefore, readability of the CALL statement can be improved by coding the uplo argument as ’LOWER’ for ’L’ or ’UPPER’ for ’U’. Refer to “Example 2.”
Example 1 Apply a REAL*4 symmetric
CHARACTER*1 UPLO
INTEGER*4 N,INCX,INCY
REAL*4 ALPHA,AP(55),X(10),Y(10)
UPLO = ’U’
N = 9
ALPHA = 1.0
INCX = 1
INCY = 1
CALL SSPR2 (UPLO,N,ALPHA,X,INCX,Y,INCY,AP)
Example 2 Apply a COMPLEX*8 Hermitian
INTEGER*4 N
COMPLEX*8 ALPHA,AP(55),X(10),Y(10)
N = 9
CALL CHPR2 (’LOWER’,N,ALPHA,X,1,Y,1,AP)
264HP MLIB User’s Guide