ZLAHILB.F(3)
Hi bestie π welcome to the Library Functions Manual for TESTING/MATGEN/zlahilb.f. This is the ZLAHILB page, and we're gonna go through it like a group chat that actually knows Fortran. No cap. π«Ά
π NAME π
TESTING/MATGEN/zlahilb.f
That's the file, periodt. It's the home of ZLAHILB in the LAPACK testing/matgen corner of the universe. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine zlahilb (n, nrhs, a, lda, x, ldx, b, ldb, work, info, path)
ZLAHILB
π Function/Subroutine Documentation π
π subroutine zlahilb π
subroutine zlahilb (integer n, integer nrhs, complex*16, dimension(lda,n) a,
integer lda, complex*16, dimension(ldx, nrhs) x, integer ldx,
complex*16, dimension(ldb, nrhs) b, integer ldb, double precision,
dimension(n) work, integer info, character*3 path)
ZLAHILB
Okay so this is the full signature, and yes it's giving big Fortran energy but we love her. The function name is ZLAHILB. π
π¦ Purpose π¦
ZLAHILB generates an N by N scaled Hilbert matrix in A, along with NRHS right-hand sides in B and solutions in X such that A*X=B. Iconic. β¨
The Hilbert matrix is scaled by M = LCM(1, 2, ..., 2*N-1) so that all entries are integers. The right-hand sides are the first NRHS columns of M * the identity matrix, and the solutions are the first NRHS columns of the inverse Hilbert matrix. Math but make it integer-coded. Slay. π
The condition number of the Hilbert matrix grows exponentially with its size, roughly as O(e ** (3.5*N)). Additionally, the inverse Hilbert matrices beyond a relatively small dimension cannot be generated exactly without extra precision. Precision is exhausted when the largest entry in the inverse Hilbert matrix is greater than 2 to the power of the number of bits in the fraction of the data type used plus one, which is 24 for single precision. So yeah, she can run out of precision β not a vibe. π
In single, the generated solution is exact for N <= 6 and has small componentwise error for 7 <= N <= 11. Good to know, bestie. π
π Parameters π
NβNisINTEGER; the dimension of the matrixA.NRHSβNRHSisINTEGER; the requested number of right-hand sides.AβAisCOMPLEXarray, dimension(LDA, N); the generated scaled Hilbert matrix.LDAβLDAisINTEGER; the leading dimension of the arrayA.LDA >= N.XβXisCOMPLEXarray, dimension(LDX, NRHS); the generated exact solutions. Currently, the firstNRHScolumns of the inverse Hilbert matrix.LDXβLDXisINTEGER; the leading dimension of the arrayX.LDX >= N.BβBisREALarray, dimension(LDB, NRHS); the generated right-hand sides. Currently, the firstNRHScolumns ofLCM(1, 2, ..., 2*N-1) * the identity matrix. (Yep, the parameter docs sayREALright there β keeping it exactly as written. π)LDBβLDBisINTEGER; the leading dimension of the arrayB.LDB >= N.WORKβWORKisREALarray, dimension(N).INFOβINFOisINTEGER.= 0: successful exit= 1:Nis too large; the data is still generated but may not be not exact.< 0: ifINFO = -i, thei-th argument had an illegal value
PATHβPATHisCHARACTER*3; the LAPACK path name.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 132 of file zlahilb.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
And that's the whole page, bestie β every parameter, every condition-number caveat, every little INFO code. This cutie signs off from TESTING/MATGEN/zlahilb.f(3) with LAPACK Version 3.12.0. Stay exact, stay iconic, and may your matrices always be scaled. π
β¨π
π¦ 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