hbmv(3)
okay bestie, settle in β this is hbmv(3) from the Library Functions Manual, and she is long. Grab a lil snack π, we're doing this in parts, and part one starts right now.
β¨ NAME β¨
hbmv β {hb,sb}mv: Hermitian/symmetric matrix-vector multiply π«Ά
π¦ SYNOPSIS π¦
π Functions π
chbmvβsubroutine chbmv (uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)β she's theCHBMVone πdsbmvβsubroutine dsbmv (uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)β that'sDSBMVπ¦ssbmvβsubroutine ssbmv (uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)βSSBMV, iconic βzhbmvβsubroutine zhbmv (uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)β andZHBMVπ
πΈ Detailed Description πΈ
ngl there is literally nothing in this section in the original β the actual lore lives down in Function Documentation. keep scrolling bestie π
π Function Documentation π
π subroutine chbmv π
subroutine chbmv (character uplo, integer n, integer k, complex alpha,
complex, dimension(lda,*) a, integer lda, complex, dimension(*) x,
integer incx, complex beta, complex, dimension(*) y, integer incy)
CHBMV
π₯ Purpose π₯
okay so CHBMV 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 hermitian band matrix, with k super-diagonals. she ate, no cap π₯
π§ Parameters π§
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the band matrixAis being supplied, as follows:UPLO = 'U' or 'u'β the upper triangular part ofAis being supplied.UPLO = 'L' or 'l'β the lower triangular part ofAis being supplied.
NβNisINTEGER. On entry,Nspecifies the order of the matrixA.Nmust be at least zero.KβKisINTEGER. On entry,Kspecifies the number of super-diagonals of the matrixA.Kmust satisfy0 .le. K.ALPHAβALPHAisCOMPLEX. On entry,ALPHAspecifies the scalaralpha.AβAisCOMPLEXarray, dimension( LDA, N ).
Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the hermitian matrix, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced.
The following program segment will transfer the upper triangular part of a hermitian band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = K + 1 - J
DO 10, I = MAX( 1, J - K ), J
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the hermitian matrix, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced.
The following program segment will transfer the lower triangular part of a hermitian band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = 1 - J
DO 10, I = J, MIN( N, J + K )
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
heads up bestie: note that the imaginary parts of the diagonal elements need not be set and are assumed to be zero. π don't @ me, that's just how she is.
LDAβLDAisINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at least( k + 1 ).XβXisCOMPLEXarray, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain the vectorx.INCXβINCXisINTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero.BETAβBETAisCOMPLEX. On entry,BETAspecifies the scalarbeta.YβYisCOMPLEXarray, dimension at least( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented arrayYmust contain the vectory. On exit,Yis overwritten by the updated vectory. π«Ά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, or M = 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.
Definition at line 186 of file chbmv.f.
π subroutine dsbmv π
subroutine dsbmv (character uplo, integer n, integer k, double precision
alpha, double precision, dimension(lda,*) a, integer lda, double
precision, dimension(*) x, integer incx, double precision beta, double
precision, dimension(*) y, integer incy)
DSBMV
π₯ Purpose π₯
DSBMV 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 band matrix, with k super-diagonals. symmetric this time, not hermitian β she's a different girl, respect it π
π§ Parameters π§
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the band matrixAis being supplied, as follows:UPLO = 'U' or 'u'β the upper triangular part ofAis being supplied.UPLO = 'L' or 'l'β the lower triangular part ofAis being supplied.
NβNisINTEGER. On entry,Nspecifies the order of the matrixA.Nmust be at least zero.KβKisINTEGER. On entry,Kspecifies the number of super-diagonals of the matrixA.Kmust satisfy0 .le. K.ALPHAβALPHAisDOUBLE PRECISION.On entry,ALPHAspecifies the scalaralpha.AβAisDOUBLE PRECISIONarray, dimension( LDA, N ).
Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the symmetric matrix, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced.
The following program segment will transfer the upper triangular part of a symmetric band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = K + 1 - J
DO 10, I = MAX( 1, J - K ), J
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the symmetric matrix, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced.
The following program segment will transfer the lower triangular part of a symmetric band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = 1 - J
DO 10, I = J, MIN( N, J + K )
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
LDAβLDAisINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at least( k + 1 ).XβXisDOUBLE PRECISIONarray, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain the vectorx.INCXβINCXisINTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero.BETAβBETAisDOUBLE PRECISION.On entry,BETAspecifies the scalarbeta.Yβ
okay bestie that's where this part cuts off β the Y section continues in the next chunk, don't go anywhere π
Yβ bestie,Yis aDOUBLE PRECISIONarray, dimension at least( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented arrayYmust contain the vectory. On exit,Yis overwritten by the updated vectoryβ it gets a whole new vibe, no cap. β¨INCYβINCYisINTEGER. On entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. Literally do not pass zero, bestie. π«Ά
π 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.
Definition at line 183 of file dsbmv.f.
πΈ subroutine ssbmv πΈ
subroutine ssbmv (character uplo, integer n, integer k, real alpha, real,
dimension(lda,*) a, integer lda, real, dimension(*) x, integer incx,
real beta, real, dimension(*) y, integer incy)
β¨ SSBMV β¨
π― Purpose π―
SSBMV 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 band matrix, with k super-diagonals. Slay. π
π Parameters π
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the band matrixAis being supplied, like this:UPLO = 'U' or 'u'β the upper triangular part ofAis being supplied.UPLO = 'L' or 'l'β the lower triangular part ofAis being supplied.
NβNisINTEGER. On entry,Nspecifies the order of the matrixA.Nmust be at least zero. Zero is allowed, it's giving edge case realness. πKβKisINTEGER. On entry,Kspecifies the number of super-diagonals of the matrixA.Kmust satisfy0 .le. K. Yes bestie, zero is valid.ALPHAβALPHAisREAL. On entry,ALPHAspecifies the scalaralpha. Iconic scalar behavior. β¨AβAisREALarray, dimension( LDA, N ).
Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the symmetric matrix, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced.
The following program segment will transfer the upper triangular part of a symmetric band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = K + 1 - J
DO 10, I = MAX( 1, J - K ), J
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the symmetric matrix, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced.
The following program segment will transfer the lower triangular part of a symmetric band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = 1 - J
DO 10, I = J, MIN( N, J + K )
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
LDAβLDAisINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at least( k + 1 ). Respect the leading dimension, bestie. π«ΆXβXisREALarray, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain the vectorx.INCXβINCXisINTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. Again: not zero. π¨BETAβBETAisREAL. On entry,BETAspecifies the scalarbeta. Another scalar, another moment. πYβYisREALarray, dimension at least( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented arrayYmust contain the vectory. On exit,Yis overwritten by the updated vectory.INCYβINCYisINTEGER. On entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. Do not test me on this. π
π 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.
Definition at line 183 of file ssbmv.f.
π subroutine zhbmv π
subroutine zhbmv (character uplo, integer n, integer k, complex*16 alpha,
complex*16, dimension(lda,*) a, integer lda, complex*16, dimension(*) x,
integer incx, complex*16 beta, complex*16, dimension(*) y, integer incy)
π ZHBMV π
π― Purpose π―
ZHBMV 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 hermitian band matrix, with k super-diagonals. Hermitian and fabulous. π¦
π Parameters π
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the upper or lower triangular part of the band matrixAis being supplied, like this:UPLO = 'U' or 'u'β the upper triangular part ofAis being supplied.UPLO = 'L' or 'l'β the lower triangular part ofAis being supplied.
NβNisINTEGER. On entry,Nspecifies the order of the matrixA.Nmust be at least zero. Zero is still a valid order, periodt. β¨KβKisINTEGER. On entry,Kspecifies the number of super-diagonals of the matrixA.Kmust satisfy0 .le. K. Yes, exactly that.ALPHAβALPHAisCOMPLEX*16. On entry,ALPHAspecifies the scalaralpha. Complex scalar, complex main character energy. πAβAisCOMPLEX*16array, dimension( LDA, N ).
Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the hermitian matrix, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced.
The following program segment will transfer the upper triangular part of a hermitian band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = K + 1 - J
DO 10, I = MAX( 1, J - K ), J
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the hermitian matrix, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced.
The following program segment will transfer the lower triangular part of a hermitian band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N
M = 1 - J
DO 10, I = J, MIN( N, J + K )
A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Note that the imaginary parts of the diagonal elements need not be set and are assumed to be zero. Important little detail, don't forget it. π«Ά
LDAβLDAisINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at least( k + 1 ).XβXisCOMPLEX*16array, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain the vectorx.INCX
picking right back up with the argument list, no recap needed π
INCXβINCX is INTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. π¨BETAβBETA is COMPLEX*16. On entry,BETAspecifies the scalar beta. πYβY is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented arrayYmust contain the vectory. On exit,Yis overwritten by the updated vectory. (iconic overwrite behavior, no cap π«Ά)INCYβINCY is INTEGER. On entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. π¨
π Author π
shoutout to the author squad, fr fr:
- 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, or M = 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.
Definition at line 186 of file zhbmv.f. π
π§ Author π§
and this part is just the auto-generated credit, bestie:
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page, bestie β LAPACK Version 3.12.0, hbmv(3), straight from the source code. mwah πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms