DLAHILB(3)
π DLAHILB(3) β dlahilb.f π
okay so this is a Library Functions Manual page, and the star of the show is dlahilb.f. No cap, it's a LAPACK test-matrix generator and it's lowkey iconic.
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/MATGEN/dlahilb.f
That's the whole NAME, bestie β it's literally the file path.
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine DLAHILB (n, nrhs, a, lda, x, ldx, b, ldb, work, info)
DLAHILB slay
π Function/Subroutine Documentation π
subroutine DLAHILB (integer n, integer nrhs, double precision, dimension(lda, n) a, integer lda, double precision, dimension(ldx, nrhs) x, integer ldx, double precision, dimension(ldb, nrhs) b, integer ldb, double precision, dimension(n) work, integer info)
DLAHILB β main character energy, fr fr.
β¨ Purpose β¨
Okay so here's the tea: DLAHILB 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. π
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. It's giving exact-solution realness β¨
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. Numbers don't lie π₯
In single, the generated solution is exact for N <= 6 and has small componentwise error for 7 <= N <= 11. Periodt. π«Ά
πΈ Parameters πΈ
NβNisINTEGER. The dimension of the matrixA. πNRHSβNRHSisINTEGER. The requested number of right-hand sides. πAβAisDOUBLE PRECISION array, dimension (LDA, N). The generated scaled Hilbert matrix. πLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= N. βXβXisDOUBLE PRECISION array, 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βBisDOUBLE PRECISION array, dimension (LDB, NRHS). The generated right-hand sides. Currently, the firstNRHScolumns ofLCM(1, 2, ..., 2*N-1) * the identity matrix. πΈLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= N. π₯WORKβWORKisDOUBLE PRECISION array, dimension (N). π§INFOβINFOisINTEGER. Here's the vibe check:= 0: successful exit π= 1:Nis too large; the data is still generated but may not be not exact. (yes, that's literally the wording β keep it in your heart π)< 0: ifINFO = -i, thei-th argument had an illegal value. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Academic royalty, honestly. π
Definition at line 123 of file dlahilb.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Sign-off time, bestie: this page is from LAPACK Version 3.12.0, and the footer path is /home/abui...N/dlahilb.f(3). No date in the footer, just pure manual-page energy. Mwah πβ¨
π¦ 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