BLAS/SRC/csyr2k.f(3)
π BLAS/SRC/csyr2k.f π
okay bestie, sit DOWN, because we're about to talk about a LAPACK BLAS routine and honestly? she's iconic. this is the page for BLAS/SRC/csyr2k.f from the LAPACK manual, and by the end of this you're gonna be obsessed. no cap. π¦
β¨ NAME β¨
BLAS/SRC/csyr2k.f β the file itself, the source, the moment. π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine csyr2k (uplo, trans, n, k, alpha, a, lda, b, ldb, beta, c, ldc)CSYR2K
π Function/Subroutine Documentation π
subroutine csyr2k (character uplo, character trans, integer n, integer k, complex alpha, complex, dimension(lda,*) a, integer lda, complex, dimension(ldb,*) b, integer ldb, complex beta, complex, dimension(ldc,*) c, integer ldc)
CSYR2K
π Purpose:
okay so here's the tea, CSYR2K performs one of the symmetric rank 2k operations, and there are two of them, so pick your fighter:
C := alpha*A*B**T + alpha*B*A**T + beta*C,
or
C := alpha*A**T*B + alpha*B**T*A + beta*C,
where alpha and beta are scalars, C is an n by n symmetric matrix and A and B are n by k matrices in the first case and k by n matrices in the second case. literally that's it, that's the whole vibe check. β¨
π₯ Parameters
UPLOβUPLO is CHARACTER*1on entry,UPLOspecifies whether the upper or lower triangular part of the arrayCis 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.
TRANSβTRANS is CHARACTER*1on entry,TRANSspecifies the operation to be performed as follows:
TRANS = 'N' or 'n' C := alpha*A*B**T + alpha*B*A**T +
beta*C.
TRANS = 'T' or 't' C := alpha*A**T*B + alpha*B**T*A +
beta*C.
NβN is INTEGERon entry,Nspecifies the order of the matrixC.Nmust be at least zero. (zero is allowed bestie, she's inclusive like that π )KβK is INTEGERon entry withTRANS = 'N'or'n',Kspecifies the number of columns of the matricesAandB, and on entry withTRANS = 'T'or't',Kspecifies the number of rows of the matricesAandB.Kmust be at least zero. periodt.ALPHAβALPHA is COMPLEXon entry,ALPHAspecifies the scalaralpha. she's just a girl. πAβA is 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βLDA is INTEGERon 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βB is 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βLDB is INTEGERon 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βBETA is COMPLEXon entry,BETAspecifies the scalarbeta. her too. πCβC is COMPLEX array, dimension ( LDC, N )before entry withUPLO = 'U'or'u', the leadingnbynupper triangular part of the arrayCmust contain the upper triangular part of the symmetric 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 leading n by n lower triangular part of the array C must contain the lower triangular part of the symmetric 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.
LDCβLDC is INTEGERon 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.
look at that lineup. main character energy from FOUR institutions. we love a collaborative slay. π
π§ 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.
okay 1989?? the way this routine is older than basically everyone reading this and she STILL serves. not me getting emotional over Fortran. ππ
π Definition at line 187 of file csyr2k.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (yes bestie, the docs wrote themselves, we're just here for the vibes π¦)
and that's the whole page, fr fr β nothing skipped, nothing invented, every flag and every scalar accounted for. π
Version 3.12.0 β Tue Nov 28 2023 12:08:41. mwah, xoxo, go call CSYR2K responsibly. πβ¨
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms