TESTING/EIG/sort03.f(3)
β¨ NAME β¨
TESTING/EIG/sort03.f β thatβs the file, bestie π
. This page lives in the Library Functions Manual, and itβs all about the SORT03 subroutine.
π¦ SYNOPSIS π¦
π Functions/Subroutines π
Functions/Subroutines
subroutine sort03 (rc, mu, mv, n, k, u, ldu, v, ldv, work, lwork,
result, info)
SORT03
π Function/Subroutine Documentation π
subroutine sort03 (character*( * ) rc, integer mu, integer mv, integer n,
integer k, real, dimension( ldu, * ) u, integer ldu, real, dimension(
ldv, * ) v, integer ldv, real, dimension( * ) work, integer lwork, real
result, integer info)
SORT03 β yes, thatβs the subroutineβs name, and she is the main character here π.
π― Purpose π―
SORT03 compares two orthogonal 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 S is +-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 π.
π Parameters π
RCβRC is CHARACTER*1. IfRC = 'R', the rows ofUandVare to be compared. IfRC = 'C', the columns ofUandVare to be compared π.MUβMU is INTEGER. The number of rows ofUifRC = 'R', and the number of columns ifRC = 'C'. IfMU = 0,SORT03does nothing.MUmust be at least zero.MVβMV is INTEGER. The number of rows ofVifRC = 'R', and the number of columns ifRC = 'C'. IfMV = 0,SORT03does nothing.MVmust be at least zero.NβN is INTEGER. IfRC = 'R', the number of columns in the matricesUandV; and ifRC = 'C', the number of rows inUandV. IfN = 0,SORT03does nothing.Nmust be at least zero.KβK is INTEGER. The number of rows or columns ofUandVto compare.0 <= K <= max(MU,MV).UβU is REAL array, dimension (LDU,N). The first matrix to compare. IfRC = 'R',UisMUbyN, and ifRC = 'C',UisNbyMU.LDUβLDU is INTEGER. The leading dimension ofU. IfRC = 'R',LDU >= max(1,MU), and ifRC = 'C',LDU >= max(1,N).VβV is REAL array, dimension (LDV,N). The second matrix to compare. IfRC = 'R',VisMVbyN, and ifRC = 'C',VisNbyMV.LDVβLDV is INTEGER. The leading dimension ofV. IfRC = 'R',LDV >= max(1,MV), and ifRC = 'C',LDV >= max(1,N).WORKβWORK is REAL array, dimension (LWORK).LWORKβLWORK is INTEGER. 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.RESULTβRESULT is REAL. The value computed by the test described above.RESULTis limited to1/ulpto avoid overflow.INFOβINFO is INTEGER.0indicates a successful exit;-kindicates the k-th parameter had an illegal value.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 154 of file sort03.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Okay bestie, thatβs the whole page π«Ά. Source/version vibes: LAPACK, Version 3.12.0, generated automatically by Doxygen for LAPACK from the source code. Byeee β¨π
π
π¦ 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