NAG Library Routine Document

f06zpf  (zherk)

 Contents

    1  Purpose
    7  Accuracy
    10  Example

1
Purpose

f06zpf (zherk) performs one of the Hermitian rank-k update operations
CαAAH+βC  or  CαAHA+βC  
where A is a complex matrix, C is an n by n complex Hermitian matrix, and α and β are real scalars.

2
Specification

Fortran Interface
Subroutine f06zpf ( uplo, trans, n, k, alpha, a, lda, beta, c, ldc)
Integer, Intent (In):: n, k, lda, ldc
Real (Kind=nag_wp), Intent (In):: alpha, beta
Complex (Kind=nag_wp), Intent (In):: a(lda,*)
Complex (Kind=nag_wp), Intent (Inout):: c(ldc,*)
Character (1), Intent (In):: uplo, trans
C Header Interface
#include nagmk26.h
void  f06zpf_ ( const char *uplo, const char *trans, const Integer *n, const Integer *k, const double *alpha, const Complex a[], const Integer *lda, const double *beta, Complex c[], const Integer *ldc, const Charlen length_uplo, const Charlen length_trans)
The routine may be called by its BLAS name zherk.

3
Description

None.

4
References

None.

5
Arguments

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αAAH+βC.
trans='C'
CαAHA+βC.
Constraint: trans='N' or 'C'.
3:     n – IntegerInput
On entry: n, the order of the matrix C; the number of rows of A if trans='N', or the number of columns of A if trans='C'.
Constraint: n0.
4:     k – IntegerInput
On entry: k, the number of columns of A if trans='N', or the number of rows of A if trans='C'.
Constraint: k0.
5:     alpha – Real (Kind=nag_wp)Input
On entry: the scalar α.
6:     alda* – Complex (Kind=nag_wp) arrayInput
Note: the second dimension of the array a must be at least max1,k if trans='N' and at least max1,n if trans='C'.
On entry: the matrix A; A is n by k if trans='N', or k by n if trans='C'.
7:     lda – IntegerInput
On entry: the first dimension of the array a as declared in the (sub)program from which f06zpf (zherk) is called.
Constraints:
  • if trans='N', lda max1,n ;
  • if trans='C', lda max1,k .
8:     beta – Real (Kind=nag_wp)Input
On entry: the scalar β.
9:     cldc* – Complex (Kind=nag_wp) arrayInput/Output
Note: the second dimension of the array c must be at least max1,n.
On entry: the n by n Hermitian 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. The imaginary parts of the diagonal elements are set to zero.
10:   ldc – IntegerInput
On entry: the first dimension of the array c as declared in the (sub)program from which f06zpf (zherk) is called.
Constraint: ldcmax1,n .

6
Error Indicators and Warnings

None.

7
Accuracy

Not applicable.

8
Parallelism and Performance

f06zpf (zherk) is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.

9
Further Comments

None.

10
Example

None.
© The Numerical Algorithms Group Ltd, Oxford, UK. 2017