TESTING/EIG/cunt03.f(3)
π NAME π
TESTING/EIG/cunt03.f β yep, that's the whole name, bestie. This is the TESTING/EIG/cunt03.f(3) page from the Library Functions Manual, and we are about to get into it.
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine cunt03 (rc, mu, mv, n, k, u, ldu, v, ldv, work, lwork, rwork, result, info)β CUNT03
π¦ Function/Subroutine Documentation π¦
subroutine cunt03 (character*( * ) rc, integer mu, integer mv, integer n,
integer k, complex, dimension( ldu, * ) u, integer ldu, complex,
dimension( ldv, * ) v, integer ldv, complex, dimension( * ) work,
integer lwork, real, dimension( * ) rwork, real result, integer info)
CUNT03
πΈ Parameters πΈ
RCβRCisCHARACTER*1. IfRC = 'R'the rows ofUandVare to be compared. IfRC = 'C'the columns ofUandVare to be compared.MUβMUisINTEGER. The number of rows ofUifRC = 'R', and the number of columns ifRC = 'C'. IfMU = 0CUNT03 does nothing.MUmust be at least zero.MVβMVisINTEGER. The number of rows ofVifRC = 'R', and the number of columns ifRC = 'C'. IfMV = 0CUNT03 does nothing.MVmust be at least zero.NβNisINTEGER. IfRC = 'R', the number of columns in the matricesUandV, and ifRC = 'C', the number of rows inUandV. IfN = 0CUNT03 does nothing.Nmust be at least zero.KβKisINTEGER. The number of rows or columns ofUandVto compare.0 <= K <= max(MU,MV).UβUisCOMPLEXarray, dimension(LDU,N). The first matrix to compare. IfRC = 'R',UisMUbyN, and ifRC = 'C',UisNbyMU.LDUβLDUisINTEGER. The leading dimension ofU. IfRC = 'R',LDU >= max(1,MU), and ifRC = 'C',LDU >= max(1,N).VβVisCOMPLEXarray, dimension(LDV,N). The second matrix to compare. IfRC = 'R',VisMVbyN, and ifRC = 'C',VisNbyMV.LDVβLDVisINTEGER. The leading dimension ofV. IfRC = 'R',LDV >= max(1,MV), and ifRC = 'C',LDV >= max(1,N).WORKβWORKisCOMPLEXarray, dimension(LWORK).LWORKβLWORKisINTEGER. The length of the arrayWORK. For best performance,LWORKshould be at leastN*NifRC = 'C'orM*MifRC = 'R', but the tests will be done even ifLWORKis0.RWORKβRWORKisREALarray, dimension(max(MV,N)).RESULTβRESULTisREAL. The value computed by the test described above.RESULTis limited to1/ulpto avoid overflow.INFOβINFOisINTEGER.0indicates a successful exit.-kindicates the k-th parameter had an illegal value.
π§ Purpose π§
CUNT03 compares two unitary matrices U and V to see if their corresponding rows or columns span the same spaces. The rows are checked if RC = 'R', and the columns are checked if RC = 'C'.
RESULT is the maximum of
| V*V' - I | / ( MV ulp ), if RC = 'R', or
| V'*V - I | / ( MV ulp ), if RC = 'C',
and the maximum over rows (or columns) 1 to K of
| U(i) - S*V(i) |/ ( N ulp )
where abs(S) = 1 (chosen to minimize the expression), U(i) is the i-th row (column) of U, and V(i) is the i-th row (column) of V.
Bestie, this is the math-y vibe check: it's checking whether the rows or columns line up in the same space, and RESULT tells you how far off they are. Slay. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 160 of file cunt03.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
That's the whole iconic page, bestie. It's from LAPACK Version 3.12.0, and the footer energy is literally TESTING/EIG/cunt03.f(3). Mwah πβ¨
π¦ 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