BLAS/SRC/cher2k.f(3)
π BLAS/SRC/cher2k.f(3) π β Library Functions Manual, bestie
okay so we are literally in the BLAS trenches and this page is the manual for cher2k, a Level 3 BLAS routine. Group-chat voice on, details stay exactly where they belong. π
πΈ NAME πΈ
BLAS/SRC/cher2k.f β that's the name, that's the file, no cap. It's the CHER2K BLAS routine page. π«Ά
β¨ SYNOPSIS β¨
Here's the function list, short and sweet:
π Functions/Subroutines π
subroutine cher2k (uplo, trans, n, k, alpha, a, lda, b, ldb, beta, c, ldc)βCHER2K
π«Ά Function/Subroutine Documentation π«Ά
π CHER2K π
subroutine cher2k (character uplo, character trans, integer n, integer k,
complex alpha, complex, dimension(lda,*) a, integer lda, complex,
dimension(ldb,*) b, integer ldb, real beta, complex, dimension(ldc,*) c,
integer ldc)
π― Purpose π―
CHER2K performs one of the hermitian rank 2k operations β yes, hermitian, rank 2k, say it with your chest. π
C := alpha*A*B**H + conjg( alpha )*B*A**H + beta*C,
or
C := alpha*A**H*B + conjg( alpha )*B**H*A + beta*C,
where alpha and beta are scalars with beta real, C is an n by n hermitian matrix, and A and B are n by k matrices in the first case and k by n matrices in the second case. π¦
π§ Parameters π§
Okay bestie, here's every parameter, no skipping:
UPLOβCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the arrayCis to be referenced, like this:UPLO = 'U' or 'u'β only the upper triangular part ofCis to be referenced.UPLO = 'L' or 'l'β only the lower triangular part ofCis to be referenced.
TRANSβCHARACTER*1. On entry,TRANSspecifies the operation to be performed, and it's giving choose-your-own-adventure:TRANS = 'N' or 'n'βC := alpha*A*B**H + conjg( alpha )*B*A**H + beta*C.TRANS = 'C' or 'c'βC := alpha*A**H*B + conjg( alpha )*B**H*A + beta*C.
NβINTEGER. On entry,Nspecifies the order of the matrixC.Nmust be at least zero. Periodt.KβINTEGER. On entry withTRANS = 'N' or 'n',Kspecifies the number of columns of the matricesAandB, and on entry withTRANS = 'C' or 'c',Kspecifies the number of rows of the matricesAandB.Kmust be at least zero.ALPHAβCOMPLEX. On entry,ALPHAspecifies the scalaralpha.AβCOMPLEX array, dimension ( LDA, ka ), wherekaiskwhenTRANS = 'N' or 'n', and isnotherwise. Before entry withTRANS = 'N' or 'n', the leadingnbykpart of the arrayAmust contain the matrixA, otherwise the leadingkbynpart of the arrayAmust contain the matrixA.LDAβINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program. WhenTRANS = 'N' or 'n'thenLDAmust be at leastmax( 1, n ), otherwiseLDAmust be at leastmax( 1, k ).BβCOMPLEX array, dimension ( LDB, kb ), wherekbiskwhenTRANS = 'N' or 'n', and isnotherwise. Before entry withTRANS = 'N' or 'n', the leadingnbykpart of the arrayBmust contain the matrixB, otherwise the leadingkbynpart of the arrayBmust contain the matrixB.LDBβINTEGER. On entry,LDBspecifies the first dimension ofBas declared in the calling (sub) program. WhenTRANS = 'N' or 'n'thenLDBmust be at leastmax( 1, n ), otherwiseLDBmust be at leastmax( 1, k ).BETAβREAL. On entry,BETAspecifies the scalarbeta.CβCOMPLEX array, dimension ( LDC, N ). Okay bestie, this one has layers:- Before entry with
UPLO = 'U' or 'u', the leadingnbynupper triangular part of the arrayCmust contain the upper triangular part of the hermitian matrix, and the strictly lower triangular part ofCis not referenced. On exit, the upper triangular part of the arrayCis overwritten by the upper triangular part of the updated matrix. - Before entry with
UPLO = 'L' or 'l', the leadingnbynlower triangular part of the arrayCmust contain the lower triangular part of the hermitian matrix, and the strictly upper triangular part ofCis not referenced. On exit, the lower triangular part of the arrayCis 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. π
- Before entry with
LDCβINTEGER. On entry,LDCspecifies the first dimension ofCas declared in the calling (sub) program.LDCmust be at leastmax( 1, n ).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π₯ Further Details π₯
Receipts, bestie:
- 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.
- Modified
8-Nov-93to setC(J,J)toREAL( C(J,J) )whenBETA = 1.- Ed Anderson, Cray Research Inc.
π Definition π
Definition at line 196 of file cher2k.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole tea, bestie. This page is from LAPACK β Version 3.12.0 β and the footer tag on the original is BLAS/SRC/cher2k.f(3). Stay hermitian, stay hydrated, and don't forget beta is real. πβ¨π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms