TESTING/EIG/sort01.f(3)
TESTING/EIG/sort01.f(3) π¦
Ok bestie, this page is from the Library Functions Manual, and itβs giving βletβs check if this matrix is orthogonalβ energy. Every detail is staying, no cap. π
NAME πΈ
TESTING/EIG/sort01.f
SYNOPSIS β¨
Functions/Subroutines π
subroutine sort01 (rowcol, m, n, u, ldu, work, lwork, resid)βSORT01
Function/Subroutine Documentation π
Hereβs the whole signature, exactly as the page serves it:
subroutine sort01 (character rowcol, integer m, integer n, real, dimension(
ldu, * ) u, integer ldu, real, dimension( * ) work, integer lwork, real
resid)
SORT01
Purpose π₯
SORT01 checks that the matrix U is orthogonal 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'. π«Ά
Parameters π§
ROWCOLβROWCOL is CHARACTER. Specifies whether the rows or columns ofUshould be checked for orthogonality. Used only ifM = N.= 'R': Check for orthogonal rows of U;= 'C': Check for orthogonal columns of U.MβM is INTEGER. The number of rows of the matrixU.NβN is INTEGER. The number of columns of the matrixU.UβU is REAL array, dimension (LDU,N). The orthogonal matrixU.Uis checked for orthogonal columns ifm > nor ifm = nandROWCOL = 'C'.Uis checked for orthogonal rows ifm < nor ifm = nandROWCOL = 'R'.LDUβLDU is INTEGER. The leading dimension of the arrayU.LDU >= max(1,M).WORKβWORK is REAL array, dimension (LWORK).LWORKβLWORK is INTEGER. The length of the arrayWORK. For best performance,LWORKshould be at leastN*(N+1)ifROWCOL = 'C'orM*(M+1)ifROWCOL = 'R', but the test will be done even ifLWORKis0.RESIDβRESID is REAL.RESID = norm( I - U * U' ) / ( n * EPS ), if ROWCOL = 'R', orRESID = 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 115 of file sort01.f.
Author π
Generated automatically by Doxygen for LAPACK from the source code.
Thatβs the whole iconic page, bestie β LAPACK Version 3.12.0 energy for TESTING/EIG/sort01.f(3), straight from the footer vibe, and not a single formula or parameter got left behind ππ«Ά
π¦ 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