TESTING/MATGEN/clatm6.f(3)
π TESTING/MATGEN/clatm6.f(3) π
okay bestie, this is the TESTING/MATGEN/clatm6.f(3) page from the Library Functions Manual β yes, weβre deep in LAPACK test-matrix territory, and itβs giving βmath but make it fashionβ β¨
πΈ NAME πΈ
TESTING/MATGEN/clatm6.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
CLATM6β the subroutine in question, and the vibe is very much βI generate test matricesβ π
subroutine clatm6 (type, n, a, lda, b, x, ldx, y, ldy, alpha, beta, wx,
wy, s, dif)
π¦ Function/Subroutine Documentation π¦
π subroutine clatm6 π
CLATM6
subroutine clatm6 (integer type, integer n, complex, dimension( lda, * ) a,
integer lda, complex, dimension( lda, * ) b, complex, dimension( ldx, *
) x, integer ldx, complex, dimension( ldy, * ) y, integer ldy, complex
alpha, complex beta, complex wx, complex wy, real, dimension( * ) s,
real, dimension( * ) dif)
β Purpose β
So, CLATM6 generates test matrices for the generalized eigenvalue problem, their corresponding right and left eigenvector matrices, and it also gives reciprocal condition numbers for all eigenvalues plus the reciprocal condition numbers of eigenvectors corresponding to the 1th and 5th eigenvalues. Iconic behavior π
Test Matrices β okay so there are two kinds of test matrix pairs, and theyβre built like this:
(A, B) = inverse(YH) * (Da, Db) * inverse(X)
These are used in the tests:
Type 1:
Type 1:
Da = 1+a 0 0 0 0 Db = 1 0 0 0 0
0 2+a 0 0 0 0 1 0 0 0
0 0 3+a 0 0 0 0 1 0 0
0 0 0 4+a 0 0 0 0 1 0
0 0 0 0 5+a , 0 0 0 0 1
and Type 2:
Type 2:
Da = 1+i 0 0 0 0 Db = 1 0 0 0 0
0 1-i 0 0 0 0 1 0 0 0
0 0 1 0 0 0 0 1 0 0
0 0 0 (1+a)+(1+b)i 0 0 0 0 1 0
0 0 0 0 (1+a)-(1+b)i, 0 0 0 0 1 .
In both cases the same inverse(YH) and inverse(X) are used to compute (A, B), giving the exact eigenvectors to (A,B) as (YH, X):
YH: = 1 0 -y y -y X = 1 0 -x -x x
0 1 -y y -y 0 1 x -x -x
0 0 1 0 0 0 0 1 0 0
0 0 0 1 0 0 0 0 1 0
0 0 0 0 1, 0 0 0 0 1 , where
a, b, x and y will have all values independently of each other. π«
π Parameters π
TYPEβTYPEisINTEGER; it specifies the problem type (see further details) πNβNisINTEGER; size of the matricesAandB.AβAisCOMPLEXarray, dimension(LDA, N). On exitAN-by-Nis initialized according toTYPE.LDAβLDAisINTEGER; the leading dimension ofAand ofB.BβBisCOMPLEXarray, dimension(LDA, N). On exitBN-by-Nis initialized according toTYPE.XβXisCOMPLEXarray, dimension(LDX, N). On exitXis theN-by-Nmatrix of right eigenvectors.LDXβLDXisINTEGER; the leading dimension ofX.YβYisCOMPLEXarray, dimension(LDY, N). On exitYis theN-by-Nmatrix of left eigenvectors.LDYβLDYisINTEGER; the leading dimension ofY.ALPHAβALPHAisCOMPLEX.BETAβBETAisCOMPLEX. Weighting constants for matrixA.WXβWXisCOMPLEX; constant for right eigenvector matrix.WYβWYisCOMPLEX; constant for left eigenvector matrix.SβSisREALarray, dimension(N).S(i)is the reciprocal condition number for eigenvaluei.DIFβDIFisREALarray, dimension(N).DIF(i)is the reciprocal condition number for eigenvectori.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 172 of file clatm6.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
thatβs the whole page, bestie π«Ά β source/version: LAPACK Version 3.12.0; footer tag: TESTING/MATGEN/clatm6.f(3) β¨
π¦ 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