TESTING/EIG/csgt01.f(3)
okay bestie, welcome to TESTING/EIG/csgt01.f from the LAPACK Library Functions Manual β yep, the (3) manual-page situation. this whole page is about CSGT01, and itβs giving βtesting routine that checks your generalized Hermitian eigen-decompositionβ energy. π
πΈ NAME
TESTING/EIG/csgt01.f β thatβs the page/file name, and the actual subroutine star is CSGT01.
β¨ SYNOPSIS
π§ Functions/Subroutines
subroutine csgt01 (itype, uplo, n, m, a, lda, b, ldb, z, ldz, d, work,
rwork, result)
CSGT01
the icon herself: CSGT01.
π Function/Subroutine Documentation
hereβs the full signature, copied exactly because we do not mess with signatures in this house:
subroutine csgt01 (integer itype, character uplo, integer n, integer m,
complex, dimension( lda, * ) a, integer lda, complex, dimension( ldb, *
) b, integer ldb, complex, dimension( ldz, * ) z, integer ldz, real,
dimension( * ) d, complex, dimension( * ) work, real, dimension( * )
rwork, real, dimension( * ) result)
CSGT01
π Purpose
quick translation: CSGT01 checks a decomposition of the form
!>
!> CSGT01 checks a decomposition of the form
!>
!> A Z = B Z D or
!> A B Z = Z D or
!> B A Z = Z D
!>
!> where A is a Hermitian matrix, B is Hermitian positive definite,
!> Z is unitary, and D is diagonal.
!>
!> One of the following test ratios is computed:
!>
!> ITYPE = 1: RESULT(1) = | A Z - B Z D | / ( |A| |Z| n ulp )
!>
!> ITYPE = 2: RESULT(1) = | A B Z - Z D | / ( |A| |Z| n ulp )
!>
!> ITYPE = 3: RESULT(1) = | B A Z - Z D | / ( |A| |Z| n ulp )
!>
so yeah, itβs checking A Z = B Z D, A B Z = Z D, or B A Z = Z D where A is Hermitian, B is Hermitian positive definite, Z is unitary, and D is diagonal. and depending on ITYPE, it computes one of those test ratios. the math is mathing π§
π¦ Parameters
parameter roll call, bestie:
ITYPEβINTEGER. The form of the Hermitian generalized eigenproblem.= 1: A*z = (lambda)*B*z= 2: A*B*z = (lambda)*z= 3: B*A*z = (lambda)*z
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the Hermitian matricesAandBis stored.= 'U': Upper triangular= 'L': Lower triangular
NβINTEGER. The order of the matrixA.N >= 0.MβINTEGER. The number of eigenvalues found.M >= 0.AβCOMPLEXarray,dimension (LDA, N). The original Hermitian matrixA.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβCOMPLEXarray,dimension (LDB, N). The original Hermitian positive definite matrixB.LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).ZβCOMPLEXarray,dimension (LDZ, M). The computed eigenvectors of the generalized eigenproblem.LDZβINTEGER. The leading dimension of the arrayZ.LDZ >= max(1,N).DβREALarray,dimension (M). The computed eigenvalues of the generalized eigenproblem.WORKβCOMPLEXarray,dimension (N*N).RWORKβREALarray,dimension (N).RESULTβREALarray,dimension (1). The test ratio as described above.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 150 of file csgt01.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
and thatβs the whole page, bestie π«Ά the footer vibe is LAPACK Version 3.12.0, with TESTING/EIG/csgt01.f(3) riding at the bottom. periodt π
π¦ 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