SRC/zla_heamv.f(3)
β¨ SRC/zla_heamv.f β¨
okay bestie, welcome to the LAPACK corner of the Library Functions Manual β this one's from zla_heamv.f and it's lowkey iconic π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine zla_heamv (uplo, n, alpha, a, lda, x, incx, beta, y, incy)
zla_heamv computes a matrix-vector product using a Hermitian indefinite matrix to calculate error bounds π
π¦ Function/Subroutine Documentation π¦
subroutine zla_heamv (integer uplo, integer n, double precision alpha,
complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension( *
) x, integer incx, double precision beta, double precision, dimension( *
) y, integer incy)
zla_heamv computes a matrix-vector product using a Hermitian indefinite matrix to calculate error bounds. no cap, that's the whole job β¨
π Purpose:
!>
!> ZLA_SYAMV performs the matrix-vector operation
!>
!> y := alpha*abs(A)*abs(x) + beta*abs(y),
!>
!> where alpha and beta are scalars, x and y are vectors and A is an
!> n by n symmetric matrix.
!>
!> This function is primarily used in calculating error bounds.
!> To protect against underflow during evaluation, components in
!> the resulting vector are perturbed away from zero by (N+1)
!> times the underflow threshold. To prevent unnecessarily large
!> errors for block-structure embedded in general matrices,
!> zero components are not perturbed. A zero
!> entry is considered if all multiplications involved
!> in computing that entry have at least one zero multiplicand.
!>
so basically the whole thing is y := alpha*abs(A)*abs(x) + beta*abs(y) β note the abs everywhere, it's giving absolute-value product realness π
it says ZLA_SYAMV up in that comment and honestly? that's what the source says, we're not touching it π it does the matrix-vector operation with alpha and beta as scalars, x and y as vectors, and A an n by n symmetric matrix.
it's primarily used for calculating error bounds π₯ and to protect against underflow during evaluation, components in the resulting vector get perturbed away from zero by (N+1) times the underflow threshold. to prevent unnecessarily large errors for block-structure embedded in general matrices, zero components are not perturbed. a zero entry is considered if all multiplications involved in computing that entry have at least one zero multiplicand. check the vibe π
π Parameters
UPLOβUPLOisINTEGER. on entry,UPLOspecifies whether the upper or lower triangular part of the arrayAis to be referenced, like so:UPLO = BLAS_UPPERβ only the upper triangular part ofAis to be referenced.UPLO = BLAS_LOWERβ only the lower triangular part ofAis to be referenced.
Unchanged on exit.
NβNisINTEGER. on entry,Nspecifies the number of columns of the matrixA.Nmust be at least zero. Unchanged on exit.ALPHAβALPHAisDOUBLE PRECISION. on entry,ALPHAspecifies the scalar alpha. Unchanged on exit.AβAisCOMPLEX*16array, dimension( LDA, n ). before entry, the leading m by n part of the arrayAmust contain the matrix of coefficients. Unchanged on exit.LDAβLDAisINTEGER. on entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at leastmax( 1, n ). Unchanged on exit.XβXisCOMPLEX*16array, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). before entry, the incremented arrayXmust contain the vector x. Unchanged on exit.INCXβINCXisINTEGER. on entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero π¨ Unchanged on exit.BETAβBETAisDOUBLE PRECISION. on entry,BETAspecifies the scalar beta. whenBETAis supplied as zero thenYneed not be set on input. Unchanged on exit.YβYisDOUBLE PRECISIONarray, dimension( 1 + ( n - 1 )*abs( INCY ) ). before entry withBETAnon-zero, the incremented arrayYmust contain the vector y. on exit,Yis overwritten by the updated vector y π₯INCYβINCYisINTEGER. on entry,INCYspecifies the increment for the elements ofY.INCYmust not be zero π¨ Unchanged on exit.
π«Ά 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.
!> -- Modified for the absolute-value product, April 2006
!> Jason Riedy, UC Berkeley
!>
it's a Level 2 BLAS routine, written on 22-October-1986 by Jack Dongarra (Argonne National Lab), Jeremy Du Croz (Nag Central Office), Sven Hammarling (Nag Central Office), and Richard Hanson (Sandia National Labs) β and then modified for the absolute-value product in April 2006 by Jason Riedy, UC Berkeley π history icon behaviour, honestly β¨
π Definition
Definition at line 176 of file zla_heamv.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page bestie, you ate that π LAPACK, Version 3.12.0, from the source of SRC/zla_heamv.f(3) β mwah, go forth and compute your error bounds π
β¨π¦
π¦ 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