CUNT01(3)
π CUNT01(3) β LAPACK Library Functions Manual π
okay bestie, welcome to the <pink>CUNT01</pink> page. Itβs giving βtiny subroutine, very serious linear algebra,β and weβre gonna get through every single detail together. π«Ά
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/cunt01.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine CUNT01 (rowcol, m, n, u, ldu, work, lwork, rwork, resid)
CUNT01
π Function/Subroutine Documentation π
subroutine CUNT01 (character rowcol, integer m, integer n, complex,
dimension( ldu, * ) u, integer ldu, complex, dimension( * ) work,
integer lwork, real, dimension( * ) rwork, real resid)
CUNT01 β yes, thatβs the name, and itβs iconic. π
π Purpose π
CUNT01 checks that the matrix U is unitary by computing the ratio:
RESID = norm( I - U*U' ) / ( n * EPS ), if ROWCOL = 'R',
or
RESID = norm( I - U'*U ) / ( m * EPS ), if ROWCOL = 'C'.
Alternatively, if there isnβt sufficient workspace to form I - U*U' or I - U'*U, the ratio is computed as:
RESID = abs( I - U*U' ) / ( n * EPS ), if ROWCOL = 'R',
or
RESID = abs( I - U'*U ) / ( m * EPS ), if ROWCOL = 'C'.
where EPS is the machine precision. ROWCOL is used only if m = n; if m > n, ROWCOL is assumed to be 'C', and if m < n, ROWCOL is assumed to be 'R'.
The source wraps these lines in the usual !> Doxygen comment markers, because of course it does π
π¦ Parameters π¦
ROWCOLβROWCOLisCHARACTER. It says whether the rows or columns ofUshould be checked for orthogonality. Used only ifM = N.= 'R': check for orthogonal rows ofU.= 'C': check for orthogonal columns ofU.MβMisINTEGER. The number of rows of the matrixU.NβNisINTEGER. The number of columns of the matrixU.UβUisCOMPLEX array, dimension (LDU,N). This is the unitary matrixU.Uis checked for orthogonal columns ifm > nor ifm = nandROWCOL = 'C'.Uis checked for orthogonal rows ifm < nor ifm = nandROWCOL = 'R'.LDUβLDUisINTEGER. The leading dimension of the arrayU.LDU >= max(1,M).WORKβWORKisCOMPLEX array, dimension (LWORK).LWORKβLWORKisINTEGER. The length of the arrayWORK. For best performance,LWORKshould be at leastN*NifROWCOL = 'C'orM*MifROWCOL = 'R', but the test will be done even ifLWORKis0.RWORKβRWORKisREAL array, dimension (min(M,N)). Used only ifLWORKis large enough to use the Level 3 BLAS code.RESIDβRESIDisREAL.RESID = norm( I - U * U' ) / ( n * EPS ), if ROWCOL = 'R', or RESID = norm( I - U' * U ) / ( m * EPS ), if ROWCOL = 'C'.
π Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π Definition at line 124 of file cunt01.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
xoxo, your LAPACK Version 3.12.0 bestie, served fresh from /home/abui...IG/cunt01.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