CHERK(3) perform one of the hermitian rank k operations C := alpha*A*conjg( A' ) + beta*C,

## SYNOPSIS

SUBROUTINE CHERK
( UPLO, TRANS, N, K, ALPHA, A, LDA, BETA, C, LDC )

CHARACTER*1 UPLO, TRANS

INTEGER N, K, LDA, LDC

REAL ALPHA, BETA

COMPLEX A( LDA, * ), C( LDC, * )

## PURPOSE

CHERK performs one of the hermitian rank k operations

or

C := alpha*conjg( A' )*A + beta*C,

where alpha and beta are real scalars, C is an n by n hermitian matrix and A is an n by k matrix in the first case and a k by n matrix in the second case.

## PARAMETERS

UPLO - CHARACTER*1.
On entry, UPLO specifies whether the upper or lower triangular part of the array C is to be referenced as follows:

UPLO = 'U' or 'u' Only the upper triangular part of C is to be referenced.

UPLO = 'L' or 'l' Only the lower triangular part of C is to be referenced.

Unchanged on exit.

TRANS - CHARACTER*1.
On entry, TRANS specifies the operation to be performed as follows:

TRANS = 'N' or 'n' C := alpha*A*conjg( A' ) + beta*C.

TRANS = 'C' or 'c' C := alpha*conjg( A' )*A + beta*C.

Unchanged on exit.

N - INTEGER.
On entry, N specifies the order of the matrix C. N must be at least zero. Unchanged on exit.
K - INTEGER.
On entry with TRANS = 'N' or 'n', K specifies the number of columns of the matrix A, and on entry with TRANS = 'C' or 'c', K specifies the number of rows of the matrix A. K must be at least zero. Unchanged on exit.
ALPHA - REAL .
On entry, ALPHA specifies the scalar alpha. Unchanged on exit.
A - COMPLEX array of DIMENSION ( LDA, ka ), where ka is
k when TRANS = 'N' or 'n', and is n otherwise. Before entry with TRANS = 'N' or 'n', the leading n by k part of the array A must contain the matrix A, otherwise the leading k by n part of the array A must contain the matrix A. Unchanged on exit.
LDA - INTEGER.
On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. When TRANS = 'N' or 'n' then LDA must be at least max( 1, n ), otherwise LDA must be at least max( 1, k ). Unchanged on exit.
BETA - REAL .
On entry, BETA specifies the scalar beta. Unchanged on exit.
C - COMPLEX array of DIMENSION ( LDC, n ).
Before entry with UPLO = 'U' or 'u', the leading n by n upper triangular part of the array C must contain the upper triangular part of the hermitian matrix and the strictly lower triangular part of C is not referenced. On exit, the upper triangular part of the array C is overwritten by the upper triangular part of the updated matrix. Before entry with UPLO = 'L' or 'l', the leading n by n lower triangular part of the array C must contain the lower triangular part of the hermitian matrix and the strictly upper triangular part of C is not referenced. On exit, the lower triangular part of the array C is overwritten by the lower triangular part of the updated matrix. Note that the imaginary parts of the diagonal elements need not be set, they are assumed to be zero, and on exit they are set to zero.
LDC - INTEGER.
On entry, LDC specifies the first dimension of C as declared in the calling (sub) program. LDC must be at least max( 1, n ). Unchanged on exit.

Level 3 Blas routine.

-- Written on 8-February-1989. Jack Dongarra, Argonne National Laboratory. Iain Duff, AERE Harwell. Jeremy Du Croz, Numerical Algorithms Group Ltd. Sven Hammarling, Numerical Algorithms Group Ltd.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7620487,"math_prob":0.93854827,"size":3260,"snap":"2020-24-2020-29","text_gpt3_token_len":920,"char_repetition_ratio":0.15694103,"word_repetition_ratio":0.23148148,"special_character_ratio":0.27822086,"punctuation_ratio":0.14409222,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9698479,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-06-01T05:42:02Z\",\"WARC-Record-ID\":\"<urn:uuid:c99db248-472c-4f76-8508-2f8d2c6a80b5>\",\"Content-Length\":\"11412\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ca2a3ad9-9146-41a5-a49e-dbe2153ba4cc>\",\"WARC-Concurrent-To\":\"<urn:uuid:98e19a03-45fc-4d73-8412-6fa5e3326c22>\",\"WARC-IP-Address\":\"104.27.165.196\",\"WARC-Target-URI\":\"http://manpages.org/cherk/3\",\"WARC-Payload-Digest\":\"sha1:4DCMNY7PXKGBYCHH5PPBAPMI2FH2LQ7A\",\"WARC-Block-Digest\":\"sha1:5ABU5QZPDMUS2PT7267O3N4T4JIUXALP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347414057.54_warc_CC-MAIN-20200601040052-20200601070052-00479.warc.gz\"}"}