BLAS/SRC/zhbmv.f(3)
π BLAS/SRC/zhbmv.f β bestie edition π
okay so we're diving into zhbmv.f from LAPACK's BLAS folder, and ngl this one is kind of a bop. it's a Level 2 BLAS routine, it does a hermitian band matrix times vector thing, and it's lowkey iconic. let me tell you everything, no gatekeeping. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine zhbmv (uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)- literally just ZHBMV. that's the whole thing. slay.
π Function/Subroutine Documentation π
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 β she's the moment.
πΈ Purpose
okay so bestie, 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. that's the whole vibe. π¦
π Parameters
UPLOβUPLO is CHARACTER*1. on entry,UPLOtells us 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βN is INTEGER. on entry,Nspecifies the order of the matrixA.Nmust be at least zero. (zero is valid, don't come for her.)KβK is INTEGER. on entry,Kspecifies the number of super-diagonals of the matrixA.Kmust satisfy0 .le. K. no negative energy allowed. πALPHAβALPHA is COMPLEX*16. on entry,ALPHAspecifies the scalaralpha. she's just a scalar, living her life.AβA is COMPLEX*16 array, dimension ( LDA, N ).- before entry with
UPLO = 'U' or 'u', the leading( k + 1 )by n part of the arrayAmust 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 arrayAis not referenced β she's off-limits, periodt. - the following program segment will transfer the upper triangular part of a hermitian band matrix from conventional full matrix storage to band storage:
- before entry with
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 arrayAmust 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 arrayAis 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. so like, don't stress about them, they're already zero in spirit.
LDAβLDA is INTEGER. on entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at least( k + 1 ).XβX is COMPLEX*16 array, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). before entry, the incremented arrayXmust contain the vectorx.INCXβINCX is INTEGER. on entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. seriously. don't.BETAβBETA is COMPLEX*16. on entry,BETAspecifies the scalarbeta. another queen of a scalar.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. she got a glow-up, sorry to her old contents. πINCYβINCY is INTEGER. on entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero. same rule, bestie.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
absolute legends, all of them. π«Ά
π₯ 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
defined at line 186 of file zhbmv.f.
π Author (again, because she deserves a second shoutout)
generated automatically by Doxygen for LAPACK from the source code. the robots did this one. π€β¨
okay that's the whole page bestie, you're officially fluent in zhbmv π this was Version 3.12.0, dated Tue Nov 28 2023 12:08:41, straight out of BLAS/SRC/zhbmv.f. go forth and multiply your hermitian band matrices. 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