ZLACSG(3)
okay so bestie π
welcome to zckcsd.f(3) β this is a page from the Library Functions Manual, and the header path is /home/abui...IG/zckcsd.f(3). Itβs LAPACK testing code, which is highkey niche but lowkey iconic π«Ά.
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/zckcsd.f
Thatβs the file, bestie: the zckcsd.f source file living deep in the LAPACK build tree. Itβs giving βI was generated by a build system and I have loreβ πβ¨.
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
Two subroutines are serving here: ZCKCSD and ZLACSG. Their signatures are, exactly:
subroutine ZCKCSD (nm, mval, pval, qval, nmats, iseed, thresh, mmax, x,
xf, u1, u2, v1t, v2t, theta, iwork, work, rwork, nin, nout, info)
ZCKCSD
subroutine ZLACSG (m, p, q, theta, iseed, x, ldx, work)
π Function/Subroutine Documentation π
π subroutine ZCKCSD π
Hereβs the full typed signature of ZCKCSD, copied exactly because we do not mess with Fortran:
subroutine ZCKCSD (integer nm, integer, dimension( * ) mval, integer,
dimension( * ) pval, integer, dimension( * ) qval, integer nmats,
integer, dimension( 4 ) iseed, double precision thresh, integer mmax,
complex*16, dimension( * ) x, complex*16, dimension( * ) xf, complex*16,
dimension( * ) u1, complex*16, dimension( * ) u2, complex*16, dimension(
* ) v1t, complex*16, dimension( * ) v2t, double precision, dimension( *
) theta, integer, dimension( * ) iwork, complex*16, dimension( * ) work,
double precision, dimension( * ) rwork, integer nin, integer nout,
integer info)
ZCKCSD
π¦ Purpose π¦
ZCKCSD tests ZUNCSD: the CSD for an M-by-M unitary matrix X partitioned as [ X11 X12; X21 X22 ]. X11 is P-by-Q. Thatβs the whole purpose, and honestly it ate π
.
πΈ Parameters πΈ
NMβNMisINTEGER. The number of values ofMcontained in the vectorMVAL.MVALβMVALisINTEGER array, dimension (NM). The values of the matrix row dimensionM.PVALβPVALisINTEGER array, dimension (NM). The values of the matrix row dimensionP.QVALβQVALisINTEGER array, dimension (NM). The values of the matrix column dimensionQ.NMATSβNMATSisINTEGER. The number of matrix types to be tested for each combination of matrix dimensions. IfNMATS >= NTYPES(the maximum number of matrix types), then all the different types are generated for testing. IfNMATS < NTYPES, another input line is read to get the numbers of the matrix types to be used.ISEEDβISEEDisINTEGER array, dimension (4). On entry, the seed of the random number generator. The array elements should be between0and4095, otherwise they will be reduced mod4096, andISEED(4)must be odd. On exit, the next seed in the random number sequence after all the test matrices have been generated.THRESHβTHRESHisDOUBLE PRECISION. The threshold value for the test ratios. A result is included in the output file ifRESULT >= THRESH. To have every test ratio printed, useTHRESH = 0.MMAXβMMAXisINTEGER. The maximum value permitted forM, used in dimensioning the work arrays.XβXisCOMPLEX*16 array, dimension (MMAX*MMAX).XFβXFisCOMPLEX*16 array, dimension (MMAX*MMAX).U1βU1isCOMPLEX*16 array, dimension (MMAX*MMAX).U2βU2isCOMPLEX*16 array, dimension (MMAX*MMAX).V1TβV1TisCOMPLEX*16 array, dimension (MMAX*MMAX).V2TβV2TisCOMPLEX*16 array, dimension (MMAX*MMAX).THETAβTHETAisDOUBLE PRECISION array, dimension (MMAX).IWORKβIWORKisINTEGER array, dimension (MMAX).WORKβWORKisCOMPLEX*16 array.RWORKβRWORKisDOUBLE PRECISION array.NINβNINisINTEGER. The unit number for input.NOUTβNOUTisINTEGER. The unit number for output.INFOβINFOisINTEGER.= 0: successful exit.> 0: IfZLARORreturns an error code, the absolute value of it is returned.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 181 of file zckcsd.f.
π§ subroutine ZLACSG π§
subroutine ZLACSG (integer m, integer p, integer q, double precision,
dimension( * ) theta, integer, dimension( 4 ) iseed, complex*16,
dimension( ldx, * ) x, integer ldx, complex*16, dimension( * ) work)
Definition at line 352 of file zckcsd.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π€π
Signed off with LAPACK Version 3.12.0 energy, page path /home/abui...IG/zckcsd.f(3) β and bestie, the footer does not show a date, so Iβm not inventing one. No cap π
β¨
π¦ 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