BLAS/SRC/sspmv.f(3)
β¨ BLAS/SRC/sspmv.f β¨
okay bestie, so this page lives in the LAPACK manual, in the BLAS/SRC directory, and it's the whole saga of sspmv β a Level 2 BLAS routine that is lowkey doing the most for matrix-vector math π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine sspmv (uplo, n, alpha, ap, x, incx, beta, y, incy)βSSPMV, the icon itself π
π Function/Subroutine Documentation π
subroutine sspmv (character uplo, integer n, real alpha, real, dimension(*) ap, real, dimension(*) x, integer incx, real beta, real, dimension(*) y, integer incy)
SSPMV π«Ά
π¦ Purpose:
no cap, SSPMV performs the matrix-vector operation
y := alpha*A*x + beta*y,
where alpha and beta are scalars, x and y are n element vectors and A is an n by n symmetric matrix, supplied in packed form. it's giving efficient storage, it's giving slay β¨
π 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.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. 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. like, the packing order literally flips depending on which triangle you picked, iykyk π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. π¨BETAβBETAisREAL. On entry,BETAspecifies the scalarbeta. WhenBETAis supplied as zero thenYneed not be set on input. cute little shortcut, we love her π«ΆYβYisREALarray, dimension at least( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented arrayYmust contain the n element vectory. On exit,Yis overwritten by the updated vectory. main character energy: she goes in as one thing and leaves as another πINCYβINCYisINTEGER. On entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. π¨
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π₯ Further Details:
- Level 2 Blas routine.
- The vector and matrix arguments are not referenced when
N = 0, orM = 0
-- 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.
fr fr, 1986!! these legends were out here writing BLAS before most of us existed and the code is still iconic. we stan π
Definition at line 146 of file sspmv.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page bestie!! π this was Version 3.12.0, generated Tue Nov 28 2023 12:08:41, and it all came straight from BLAS/SRC/sspmv.f(3). go forth and multiply some matrices, but like, symmetrically and in packed form πβ¨π¦
π¦ 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