BLAS/SRC/sspr.f(3)
β¨ sspr β the symmetric rank-1 glow-up β¨
okay bestie, we're in BLAS/SRC/sspr.f and this is the LAPACK manual page for it π (yes, the man page literally calls itself BLAS/SRC/sspr.f, that's the whole NAME section, she's lowkey mysterious like that)
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine sspr (uplo, n, alpha, x, incx, ap)- SSPR
π¦ Function/Subroutine Documentation π¦
subroutine sspr (character uplo, integer n, real alpha, real, dimension(*) x, integer incx, real, dimension(*) ap)
SSPR
π Purpose π
so SSPR performs the symmetric rank 1 operation, and the way that it does it is:
A := alpha*x*x**T + A,
where alpha is a real scalar, x is an n element vector and A is an n by n symmetric matrix, supplied in packed form. no cap, that's the whole vibe π
π Parameters π
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the matrixAis supplied in the packed arrayAPas follows:UPLO = 'U' or 'u'β The upper triangular part ofAis supplied inAP.UPLO = 'L' or 'l'β The lower triangular part ofAis supplied inAP.
NβNisINTEGER. On entry,Nspecifies the order of the matrixA.Nmust be at least zero.ALPHAβALPHAisREAL. On entry,ALPHAspecifies the scalaralpha.XβXisREALarray, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain the n element vectorx.INCXβINCXisINTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. π¨ not zero, bestie, we do not play with that π¨APβAPisREALarray, dimension at least( ( n*( n + 1 ) )/2 ). Before entry withUPLO = 'U' or 'u', the arrayAPmust contain the upper triangular part of the symmetric matrix packed sequentially, column by column, so thatAP( 1 )containsa( 1, 1 ),AP( 2 )andAP( 3 )containa( 1, 2 )anda( 2, 2 )respectively, and so on. On exit, the arrayAPis overwritten by the upper triangular part of the updated matrix. Before entry withUPLO = 'L' or 'l', the arrayAPmust contain the lower triangular part of the symmetric matrix packed sequentially, column by column, so thatAP( 1 )containsa( 1, 1 ),AP( 2 )andAP( 3 )containa( 2, 1 )anda( 3, 1 )respectively, and so on. On exit, the arrayAPis overwritten by the lower triangular part of the updated matrix.
β οΈ heads up gorgeous, AP gets overwritten on exit β your original matrix is gone-gone, so don't come crying to me if you needed it π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π 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.
β Definition β
Definition at line 126 of file sspr.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page, and fr fr this one was written back in the day by the actual legends β much love to Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd., and to Jack Dongarra (Argonne National Lab.), Jeremy Du Croz (Nag Central Office), Sven Hammarling (Nag Central Office) and Richard Hanson (Sandia National Labs.), who blessed us on 22-October-1986 π
this cute little artifact is Version 3.12.0, dated Tue Nov 28 2023 12:08:41, and it lives at BLAS/SRC/sspr.f(3). slay, go forth and rank-1 update something symmetric πβ¨
π¦ 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