F06ZUF (ZSYRK) (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual
NAG Library Routine Document
F06ZUF (ZSYRK)
Note:
before using this routine, please read the Users' Note for your implementation to check the interpretation of
bold italicised
terms and other implementation-dependent details.
▸
▿
Contents
1
Purpose
2
Specification
3
Description
4
References
5
Parameters
6
Error Indicators and Warnings
7
Accuracy
8
Parallelism and Performance
9
Further Comments
10
Example
1 Purpose
F06ZUF (ZSYRK) performs one of the symmetric rank-
k
update operations
C
←
α
A
A
T
+
β
C
or
C
←
α
A
T
A
+
β
C
,
where
A
is a complex matrix,
C
is an
n
by
n
complex symmetric matrix, and
α
and
β
are complex scalars.
2 Specification
SUBROUTINE F06ZUF (
UPLO
,
TRANS
,
N
,
K
,
ALPHA
,
A
,
LDA
,
BETA
,
C
,
LDC
)
INTEGER
N, K, LDA, LDC
COMPLEX (KIND=nag_wp)
ALPHA, A(LDA,*), BETA, C(LDC,*)
CHARACTER(1)
UPLO, TRANS
The routine may be called by its BLAS name
zsyrk
.
3 Description
None.
4 References
None.
5 Parameters
1:
UPLO
– CHARACTER(1)
Input
On entry
: specifies whether the upper or lower triangular part of
C
is stored.
UPLO
=
'U'
The upper triangular part of
C
is stored.
UPLO
=
'L'
The lower triangular part of
C
is stored.
Constraint
:
UPLO
=
'U'
or
'L'
.
2:
TRANS
– CHARACTER(1)
Input
On entry
: specifies the operation to be performed.
TRANS
=
'N'
C
←
α
A
A
T
+
β
C
.
TRANS
=
'T'
C
←
α
A
T
A
+
β
C
.
Constraint
:
TRANS
=
'N'
or
'T'
.
3:
N
– INTEGER
Input
On entry
:
n
, the order of the matrix
C
; the number of rows of
A
and
B
if
TRANS
=
'N'
, or the number of columns of
A
and
B
if
TRANS
=
'T'
.
Constraint
:
N
≥
0
.
4:
K
– INTEGER
Input
On entry
:
k
, the number of columns of
A
and
B
if
TRANS
=
'N'
, or the number of rows of
A
and
B
if
TRANS
=
'T'
.
Constraint
:
K
≥
0
.
5:
ALPHA
– COMPLEX (KIND=nag_wp)
Input
On entry
: the scalar
α
.
6:
A
LDA
*
– COMPLEX (KIND=nag_wp) array
Input
Note:
the second dimension of the array
A
must be at least
max
1
,
K
if
TRANS
=
'N'
and at least
max
1
,
N
if
TRANS
=
'T'
.
On entry
: the matrix
A
;
A
is
n
by
k
if
TRANS
=
'N'
, or
k
by
n
if
TRANS
=
'T'
.
7:
LDA
– INTEGER
Input
On entry
: the first dimension of the array
A
as declared in the (sub)program from which F06ZUF (ZSYRK) is called.
Constraints
:
if
TRANS
=
'N'
,
LDA
≥
max
1
,
N
;
if
TRANS
=
'T'
,
LDA
≥
max
1
,
K
.
8:
BETA
– COMPLEX (KIND=nag_wp)
Input
On entry
: the scalar
β
.
9:
C
LDC
*
– COMPLEX (KIND=nag_wp) array
Input/Output
Note:
the second dimension of the array
C
must be at least
max
1
,
N
.
On entry
: the
n
by
n
symmetric matrix
C
.
If
UPLO
=
'U'
, the upper triangular part of
C
must be stored and the elements of the array below the diagonal are not referenced.
If
UPLO
=
'L'
, the lower triangular part of
C
must be stored and the elements of the array above the diagonal are not referenced.
On exit
: the updated matrix
C
.
10:
LDC
– INTEGER
Input
On entry
: the first dimension of the array
C
as declared in the (sub)program from which F06ZUF (ZSYRK) is called.
Constraint
:
LDC
≥
max
1
,
N
.
6 Error Indicators and Warnings
None.
7 Accuracy
Not applicable.
8 Parallelism and Performance
Not applicable.
9 Further Comments
None.
10 Example
None.
F06ZUF (ZSYRK) (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual
© The Numerical Algorithms Group Ltd, Oxford, UK. 2015