SGEMV/DGEMV/CGEMV/ZGEMV |
Example 1 Form the REAL*4
CHARACTER*1 TRANS |
|
|
|
|
| |
INTEGER*4 | M,N,LDA,INCX,INCY |
|
|
|
|
|
REAL*4 | ALPHA,BETA,A(10,10),X(10),Y(10) |
|
| |||
TRANS = ’N’ |
|
|
|
|
|
|
M = 9 |
|
|
|
|
|
|
N = 6 |
|
|
|
|
|
|
ALPHA = 1.0 |
|
|
|
|
|
|
BETA = 0.0 |
|
|
|
|
|
|
LDA = 10 |
|
|
|
|
|
|
INCX = 1 |
|
|
|
|
|
|
INCY = 1 |
|
|
|
|
|
|
CALL SGEMV (TRANS,M,N,ALPHA,A,LDA,X,INCX,BETA,Y,INCY) | ||||||
Example 2 Form the REAL*8 | 1 | T | x , where | ρ | is a real | |
|
| |||||
|
| 2 |
|
|
|
|
scalar, A is a
INTEGER*4 | M,N,LDA | |
REAL*8 | RHO,A(10,10),X(10),Y(10) | |
M = 9 |
| |
N = | 6 |
|
LDA | = 10 |
|
CALL DGEMV
236HP MLIB User’s Guide