CHER2(3)
π CHER2 π
okay so bestie, welcome to the cher2.f page from the Library Functions Manual β the whole path is literally /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/cher2.f and yes that's a mouthful, we're not unpacking that one π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/cher2.f β that's the file, that's the vibe, that's her π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine CHER2 (uplo, n, alpha, x, incx, y, incy, a, lda)
CHER2
πΈ Function/Subroutine Documentation πΈ
subroutine CHER2 (character uplo, integer n, complex alpha, complex,
dimension(*) x, integer incx, complex, dimension(*) y, integer incy,
complex, dimension(lda,*) a, integer lda)
CHER2 β she's the main character of this entire page, periodt π
π Purpose
ngl this is THE moment:
!>
!> CHER2 performs the hermitian rank 2 operation
!>
!> A := alpha*x*y**H + conjg( alpha )*y*x**H + A,
!>
!> where alpha is a scalar, x and y are n element vectors and A is an n
!> by n hermitian matrix.
!>
so we're out here updating a hermitian matrix A with two rank-1-ish things at once, and one of them has a conjugate transpose. it's giving overachiever, and honestly? we love that for her β¨
π Parameters
UPLOβUPLO is CHARACTER*1. on entry, UPLO tells you which triangular chunk of the arrayAwe're actually looking at, like:UPLO = 'U' or 'u'β only the upper triangular part ofAis referenced πUPLO = 'L' or 'l'β only the lower triangular part ofAis referenced π
NβN is INTEGER. on entry,Nis the order of the matrixA. andNmust be at least zero β like, no going negative, that's not the vibe bestie πALPHAβALPHA is COMPLEX. on entry,ALPHAis the scalaralpha. that's it, that's the whole job π«ΆXβX is COMPLEX array, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). before entry, the incremented arrayXhas to contain the n-element vectorx. feed her right, she performs πINCXβINCX is INTEGER. on entry,INCXis the increment for the elements ofX.INCXmust not be zero β fr fr, zero is not allowed, do not test her πINCYβINCY is INTEGER. on entry,INCYis the increment for the elements ofY. and same rule:INCYmust not be zero πYβY is COMPLEX array, dimension at least( 1 + ( n - 1 )*abs( INCY ) ). before entry, the incremented arrayYmust contain the n-element vectory. twin ofX, equally important πAβA is COMPLEX array, dimension ( LDA, N ). okay this one's the whole essay so let's break it down:- before entry with
UPLO = 'U' or 'u', the leading n by n upper triangular part ofAmust contain the upper triangular part of the hermitian matrix, and the strictly lower triangular part ofAis not referenced. on exit, the upper triangular part ofAis overwritten by the upper triangular part of the updated matrix π₯ - before entry with
UPLO = 'L' or 'l', the leading n by n lower triangular part ofAmust contain the lower triangular part of the hermitian matrix, and the strictly upper triangular part ofAis not referenced. on exit, the lower triangular part ofAis overwritten by the lower triangular part of the updated matrix π₯ - > heads up bestie: the imaginary parts of the diagonal elements don't need to be set β they're assumed to be zero, and on exit they get set to zero. so don't stress about them, she handles it π§
- before entry with
LDAβLDA is INTEGER. on entry,LDAis the first dimension ofAas declared in the calling (sub) program.LDAmust be at leastmax( 1, n )β that's the floor, no negotiating β
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
look at that collab, iconic lineup honestly π«Ά
π₯ 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 way back 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). literal legends, we stan π β¨
Definition at line 149 of file cher2.f. β there she is, line 149, found her π―
π« Author
Generated automatically by Doxygen for LAPACK from the source code. no cap, a robot wrote this page and it ate π€π
that's the whole page bestie, go forth and hermitian-rank-2 your heart out ππ¦ β with love from LAPACK, Version 3.12.0, signed off on /home/abui...SRC/cher2.f(3) π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms