/home/abui...C/csyr2k.f(3)
π¦ /home/abui...C/csyr2k.f(3) β ok bestie, this one's from the Library Functions Manual and it's lowkey iconic π
So this page is literally documenting /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/csyr2k.f and no cap, it's a whole vibe β a Level 3 BLAS routine that lives rent-free in LAPACK. Let's get into it π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine CSYR2K (uplo, trans, n, k, alpha, a, lda, b, ldb, beta, c,
ldc)
CSYR2Kβ that's her, that's the girl πΈ
π 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 β okay so here's what she does, bestie π
π«Ά Purpose
!>
!> CSYR2K performs one of the symmetric rank 2k operations
!>
!> 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.
!>
Like, she's doing a symmetric rank 2k operation β two of them actually, pick your fighter. The math is right there, don't shoot the messenger π
π Parameters
UPLOβUPLOisCHARACTER*1. On 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 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**T + alpha*B*A**T + beta*C.TRANS = 'T' or 't'βC := alpha*A**T*B + alpha*B**T*A + beta*C.
NβNisINTEGER. On entry,Nspecifies the order of the matrixC.Nmust be at least zero. (Zero is allowed bestie, she's flexible π )KβKisINTEGER. On 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.ALPHAβALPHAisCOMPLEX. On entry,ALPHAspecifies the scalar alpha. That's it, that's the whole description πAβAisCOMPLEX 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 ), otherwiseLDAmust be at leastmax( 1, k ).BβBisCOMPLEX 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 ), otherwiseLDBmust be at leastmax( 1, k ).BETAβBETAisCOMPLEX. On entry,BETAspecifies the scalar beta. Same energy asALPHA, honestly π«ΆCβCisCOMPLEX array, dimension ( LDC, N ).- Before entry with
UPLO = '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 leadingnbynlower triangular part of the arrayCmust contain the lower triangular part of the symmetric 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.
- Before entry with
Ngl bestie, pay attention to which half you're filling. The other half gets straight-up ignored β not read, not touched, not her problem π
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.
Give it up for the institutions, periodt π
β 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.
!>
She's a Level 3 BLAS routine, written on 8-February-1989 by:
- Jack Dongarra, Argonne National Laboratory.
- Iain Duff, AERE Harwell.
- Jeremy Du Croz, Numerical Algorithms Group Ltd.
- Sven Hammarling, Numerical Algorithms Group Ltd.
1989?? Vintage. Antique. Main character energy fr fr π₯
Definition at line 187 of file csyr2k.f. Go look, she's literally right there π¦
πΈ Author πΈ
Generated automatically by Doxygen for LAPACK from the source code. Not a human, just vibes and a doc generator β¨
π mwah, that's the page! Sending you off with the cutest little sign-off ever: this icon is from LAPACK, Version 3.12.0, and she said see you later bestie ππ π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms