BLAS/SRC/chpr.f(3)
π BLAS/SRC/chpr.f β the sacred text π
okay bestie, so this page is literally the manual entry for BLAS/SRC/chpr.f β a whole little corner of the LAPACK world. it's a Fortran thing, it's a BLAS thing, it's iconic. let's get into it π
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines
subroutine chpr (uplo, n, alpha, x, incx, ap)
CHPR β that's her. that's the one. π
πΈ Function/Subroutine Documentation πΈ
subroutine chpr (character uplo, integer n, real alpha, complex,
dimension(*) x, integer incx, complex, dimension(*) ap)
CHPR
π Purpose π
okay so here's the whole vibe, fr fr:
!> CHPR performs the hermitian rank 1 operation
!>
!> A := alpha*x*x**H + A,
!>
!> where alpha is a real scalar, x is an n element vector and A is an
!> n by n hermitian matrix, supplied in packed form.
so it takes a hermitian matrix A, all packed up, and does a rank-1 update on it. alpha is a real scalar (yes, real, even though everything else is complex β that's the whole point of hermitian, iykyk), x is your n-element vector, and A is n by n, packed. slay. π
π«Ά Parameters π«Ά
UPLOβCHARACTER*1. on entry,UPLOtells us whether the upper or lower triangular part ofAis the one living in the packed arrayAP:UPLO = 'U'or'u'β the upper triangular part ofAis supplied inAP. πUPLO = 'L'or'l'β the lower triangular part ofAis supplied inAP. π
NβINTEGER. on entry,Nspecifies the order of the matrixA.Nmust be at least zero. no negative nonsense, okay? βALPHAβREAL. on entry,ALPHAspecifies the scalaralpha. that's it, that's the whole thing. πXβCOMPLEXarray, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). before entry, the incremented arrayXmust contain thenelement vectorx. πINCXβINTEGER. on entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. like, genuinely, don't. π¨APβCOMPLEXarray, dimension at least( ( n*( n + 1 ) )/2 ). ok this one's got lore, so buckle up:- before entry with
UPLO = 'U'or'u', the arrayAPmust contain the upper triangular part of the hermitian 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 with
UPLO = 'L'or'l', the arrayAPmust contain the lower triangular part of the hermitian 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. π₯ - note that the imaginary parts of the diagonal elements need not be set β they're assumed to be zero, and on exit they are set to zero. so don't stress about them going in, but know they get zeroed coming out. π
- before entry with
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, honestly. academic royalty. π
π 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.
Level 2 BLAS routine, written 22-October-1986 β literal vintage, older than everyone reading this, and still out here doing hermitian rank-1 updates. main character energy since the Reagan administration, no cap. π°οΈβ¨
π Definition π
Definition at line 129 of file chpr.f. go look, she's right there. π§
π Author (the meta one) π
Generated automatically by Doxygen for LAPACK from the source code. not a human, just a very diligent little robot doing her thing. π€π
a gentle reminder bestie:INCXmust not be zero, andNmust be at least zero. those aren't suggestions, they're the vibe check. π
and that's the page!! π brought to you by LAPACK, Version 3.12.0 β this exact BLAS/SRC/chpr.f(3) manual entry, straight from the source, mwah. go forth and pack your triangular matrices correctly, ily π«ΆππΈ
π¦ 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