F06ZAF (ZGEMM) performs one of the matrix-matrix operations
where
,
and
are complex matrices, and
and
are complex scalars;
is always
by
.
SUBROUTINE F06ZAF ( |
TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, C, LDC) |
INTEGER |
M, N, K, LDA, LDB, LDC |
COMPLEX (KIND=nag_wp) |
ALPHA, A(LDA,*), B(LDB,*), BETA, C(LDC,*) |
CHARACTER(1) |
TRANSA, TRANSB |
|
None.
None.
- 1: TRANSA – CHARACTER(1)Input
On entry: specifies whether the operation involves
,
or
.
- The operation involves .
- The operation involves .
- The operation involves .
Constraint:
, or .
- 2: TRANSB – CHARACTER(1)Input
On entry: specifies whether the operation involves
,
or
.
- The operation involves .
- The operation involves .
- The operation involves .
Constraint:
, or .
- 3: M – INTEGERInput
On entry: , the number of rows of the matrix ; the number of rows of if , or the number of columns of if or .
Constraint:
.
- 4: N – INTEGERInput
On entry: , the number of columns of the matrix ; the number of columns of if , or the number of rows of if or .
Constraint:
.
- 5: K – INTEGERInput
On entry: , the number of columns of if , or the number of rows of if or ; the number of rows of if , or the number of columns of if or .
Constraint:
.
- 6: ALPHA – COMPLEX (KIND=nag_wp)Input
On entry: the scalar .
- 7: A(LDA,) – COMPLEX (KIND=nag_wp) arrayInput
-
Note: the second dimension of the array
A
must be at least
if
and at least
if
or
.
On entry: the matrix ; is by if , or by if or .
- 8: LDA – INTEGERInput
On entry: the first dimension of the array
A as declared in the (sub)program from which F06ZAF (ZGEMM) is called.
Constraints:
- if , ;
- if or , .
- 9: B(LDB,) – COMPLEX (KIND=nag_wp) arrayInput
-
Note: the second dimension of the array
B
must be at least
if
and at least
if
or
.
On entry: the matrix ; is by if , or by if or .
- 10: LDB – INTEGERInput
On entry: the first dimension of the array
B as declared in the (sub)program from which F06ZAF (ZGEMM) is called.
Constraints:
- if , ;
- if or , .
- 11: BETA – COMPLEX (KIND=nag_wp)Input
On entry: the scalar .
- 12: C(LDC,) – COMPLEX (KIND=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
C
must be at least
.
On entry: the
by
matrix
.
If
,
C need not be set.
On exit: the updated matrix .
- 13: LDC – INTEGERInput
On entry: the first dimension of the array
C as declared in the (sub)program from which F06ZAF (ZGEMM) is called.
Constraint:
.
None.
Not applicable.
None.
None.