BLAS/SRC/cgerc.f(3)
π BLAS/SRC/cgerc.f π
okay bestie, so this is a page from LAPACK (the Linear Algebra PACKage, the blueprint of every numerical linear algebra library you've ever used, no cap) and it's literally all about one tiny icon: cgerc. it lives in the BLAS/SRC folder and it's giving level 2 BLAS routine energy, which is iykyk. sit down, grab a strawberry π, let's get into it.
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines
subroutine cgerc (m, n, alpha, x, incx, y, incy, a, lda)β the one and only,CGERCitself π
πΈ Function/Subroutine Documentation πΈ
π subroutine cgerc (integer m, integer n, complex alpha, complex, dimension(*) x, integer incx, complex, dimension(*) y, integer incy, complex, dimension(lda,*) a, integer lda)
CGERC β¨
π Purpose:
CGERC performs the rank 1 operation
A := alpha*x*y**H + A,
where alpha is a scalar, x is an m element vector, y is an n element vector and A is an m by n matrix. slay. that's the whole vibe. a rank-1 update, no notes. π₯
π¦ Parameters
MβM is INTEGER. On entry,Mspecifies the number of rows of the matrixA.Mmust be at least zero. (zero is allowed, negative is not, we don't do that here π«)NβN is INTEGER. On entry,Nspecifies the number of columns of the matrixA.Nmust be at least zero. same rules bestie β¨ALPHAβALPHA is COMPLEX. On entry,ALPHAspecifies the scalaralpha. the little multiplier that could π«XβX is COMPLEX array, dimension at least ( 1 + ( m - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain themelement vectorx. so like, it needs to be big enough, plan ahead queen πINCXβINCX is INTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. seriously. not zero. the math does not survive a zero stride πYβY is COMPLEX array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented arrayYmust contain thenelement vectory. same sizing rules, same main character energy πINCYβINCY is INTEGER. On entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. π«ΆAβA is COMPLEX array, dimension ( LDA, N ). Before entry, the leadingmbynpart of the arrayAmust contain the matrix of coefficients. On exit,Ais overwritten by the updated matrix. yes, it gets overwritten, it's a glow-up in place πLDAβLDA is INTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at leastmax( 1, m ). read that again: at leastmax( 1, m ), not less, don't test her π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, iconic honestly π
β Further Details:
- Level 2 Blas routine.
- -- Written on 22-October-1986.
- Jack Dongarra, Argonne National Lab.
- Jeremy Du Croz, Nag Central Office.
- Sven Hammarling, Nag Central Office.
- Richard Hanson, Sandia National Labs.
1986?? the way this code is older than basically everyone's parents and it's STILL running your matrix math. timeless. legendary. no cap. π§
Definition at line 129 of file cgerc.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (not a human writing this one, just the doc generator doing its little thing π€β¨)
and that's the whole page bestie!! π this was LAPACK Version 3.12.0, generated Tue Nov 28 2023 12:08:41, filed under BLAS/SRC/cgerc.f(3). go forth and rank-1 update something. periodt. π
πΈ
π¦ 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