ZLATM4(3)
π ZLATM4(3) β Library Functions Manual π
okay so bestie, this is from the Library Functions Manual, and the source file is literally /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/zlatm4.f. Itβs giving LAPACK test-matrix generator energy, and weβre gonna read it together. π«Ά
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/zlatm4.f
π§Ύ SYNOPSIS π§Ύ
Functions/Subroutines
subroutine ZLATM4 (itype, n, nz1, nz2, rsign, amagn, rcond, triang, idist, iseed, a, lda)
ZLATM4
π οΈ Function/Subroutine Documentation π οΈ
subroutine ZLATM4
subroutine ZLATM4 (integer itype, integer n, integer nz1, integer nz2,
logical rsign, double precision amagn, double precision rcond, double
precision triang, integer idist, integer, dimension( 4 ) iseed,
complex*16, dimension( lda, * ) a, integer lda)
ZLATM4
Purpose β¨
okay so ZLATM4 generates basic square matrices, which may later be multiplied by others in order to produce test matrices. It is intended mainly to be used to test the generalized eigenvalue routines. No cap. π
It first generates the diagonal and (possibly) subdiagonal, according to the value of ITYPE, NZ1, NZ2, RSIGN, AMAGN, and RCOND. It then fills in the upper triangle with random numbers, if TRIANG is non-zero. Periodt. π
Parameters π
ITYPEβITYPE is INTEGER. The of matrix on the diagonal and sub-diagonal. (Yep, the original really has a blank right there, bestie β Iβm keeping the blank, not inventing a word. π)
If ITYPE < 0, then type abs(ITYPE) is generated and then swapped end for end (A(I,J) := A'(N-J,N-I).). See also the description of AMAGN and RSIGN.
Special types:
= 0: the zero matrix.= 1: the identity.= 2: a transposed Jordan block.= 3: IfNis odd, then ak+1 x k+1transposed Jordan block followed by ak x kidentity block, wherek=(N-1)/2. IfNis even, thenk=(N-2)/2, and a zero diagonal entry is tacked onto the end.
Diagonal types. The diagonal consists of NZ1 zeros, then k=N-NZ1-NZ2 nonzeros. The subdiagonal is zero. ITYPE specifies the nonzero diagonal entries as follows:
= 4:1, ..., k= 5:1, RCOND, ..., RCOND= 6:1, ..., 1, RCOND= 7:1, a, a^2, ..., a^(k-1)=RCOND= 8:1, 1-d, 1-2*d, ..., 1-(k-1)*d=RCOND= 9: random numbers chosen from(RCOND,1)= 10: random numbers with distributionIDIST(seeZLARND.)
NβN is INTEGER. The order of the matrix. Slay, simple. π¦NZ1βNZ1 is INTEGER. Ifabs(ITYPE) > 3, then the firstNZ1diagonal entries will be zero.NZ2βNZ2 is INTEGER. Ifabs(ITYPE) > 3, then the lastNZ2diagonal entries will be zero.RSIGNβRSIGN is LOGICAL.= .TRUE.: The diagonal and subdiagonal entries will be multiplied by random numbers of magnitude 1.= .FALSE.: The diagonal and subdiagonal entries will be left as they are (usually non-negative real.)
AMAGNβAMAGN is DOUBLE PRECISION. The diagonal and subdiagonal entries will be multiplied byAMAGN.RCONDβRCOND is DOUBLE PRECISION. Ifabs(ITYPE) > 4, then the smallest diagonal entry will beRCOND.RCONDmust be between0and1. Lowkey important, bestie. β οΈTRIANGβTRIANG is DOUBLE PRECISION. The entries above the diagonal will be random numbers with magnitude bounded byTRIANG(i.e., random numbers multiplied byTRIANG.)IDISTβIDIST is INTEGER. On entry,DISTspecifies the type of distribution to be used to generate a random matrix . (Yes, it saysDISThere; Iβm not renaming it. π)= 1: real and imaginary parts eachUNIFORM( 0, 1 )= 2: real and imaginary parts eachUNIFORM( -1, 1 )= 3: real and imaginary parts eachNORMAL( 0, 1 )= 4: complex number uniform inDISK( 0, 1 )
ISEEDβISEED is INTEGER array, dimension (4). On entryISEEDspecifies the seed of the random number generator. The values ofISEEDare changed on exit, and can be used in the next call toZLATM4to continue the same random number sequence. Note:ISEED(4)should be odd, for the random number generator used at present. iykyk πΈAβA is COMPLEX*16 array, dimension (LDA, N). Array to be computed.LDAβLDA is INTEGER. Leading dimension ofA. Must be at least1and at leastN.
Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 169 of file zlatm4.f.
Author (generated by Doxygen) π€
Generated automatically by Doxygen for LAPACK from the source code.
okay bye bestie π this iconic little page is LAPACK Version 3.12.0, footer path /home/abui...IG/zlatm4.f(3), and the footer does not list a date. Slay and goodbye. π
π¦ 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