BLAS/SRC/zher2k.f(3)
π NAME π
BLAS/SRC/zher2k.f β okay bestie, this is the Library Functions Manual page for that exact file. Itβs the home of ZHER2K, and weβre about to make hermitian rank 2k operations make sense. π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine zher2k (uplo, trans, n, k, alpha, a, lda, b, ldb, beta, c, ldc)ZHER2K
π Function/Subroutine Documentation π
π«Ά subroutine zher2k π«Ά
subroutine zher2k (character uplo, character trans, integer n, integer k,
complex*16 alpha, complex*16, dimension(lda,*) a, integer lda,
complex*16, dimension(ldb,*) b, integer ldb, double precision beta,
complex*16, dimension(ldc,*) c, integer ldc)
π ZHER2K π
π Purpose: π
Okay so ZHER2K performs one of the hermitian rank 2k operations, and the math is giving:
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. Periodt. π«
π Parameters π
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the arrayCis to be referenced as follows, bestie: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βTRANSisCHARACTER*1. On entry,TRANSspecifies the operation to be performed as follows: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βNisINTEGER. On entry,Nspecifies the order of the matrixC.Nmust be at least zero. π«ΆKβKisINTEGER. 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βALPHAisCOMPLEX*16 .On entry,ALPHAspecifies the scalaralpha.AβAisCOMPLEX*16 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βLDAisINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program. WhenTRANS = 'N'or'n', thenLDAmust be at leastmax( 1, n ); otherwise,LDAmust be at leastmax( 1, k ). πBβBisCOMPLEX*16 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βLDBisINTEGER. On entry,LDBspecifies the first dimension ofBas declared in the calling (sub) program. WhenTRANS = 'N'or'n', thenLDBmust be at leastmax( 1, n ); otherwise,LDBmust be at leastmax( 1, k ). Unchanged on exit. π«ΆBETAβBETAisDOUBLE PRECISION .On entry,BETAspecifies the scalarbeta. πCβCisCOMPLEX*16 array, dimension ( LDC, N ). Okay, 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βLDCisINTEGER. 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: π₯
- 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-93 to set C(J,J) to DBLE( C(J,J) ) when BETA = 1.Ed Anderson, Cray Research Inc.
Definition at line 197 of file zher2k.f. β
π Author π
Author β Generated automatically by Doxygen for LAPACK from the source code.
mwah π β thatβs the whole page, bestie. The footer says LAPACK Version 3.12.0 and BLAS/SRC/zher2k.f(3), so youβre fully caught up. xoxo, your Unix bestie πβ¨
π¦ 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