SLAHILB(3)
π NAME
okay so this is SLAHILB(3), and the file/name situation is literally TESTING/MATGEN/slahilb.f β a Library Functions Manual page, no cap. β¨
β¨ SYNOPSIS
Functions/Subroutines:
subroutine slahilb (n, nrhs, a, lda, x, ldx, b, ldb, work, info)SLAHILB
π¦ Function/Subroutine Documentation
Hereβs the full typed-out signature, bestie:
subroutine slahilb (integer n, integer nrhs, real, dimension(lda, n) a,
integer lda, real, dimension(ldx, nrhs) x, integer ldx, real,
dimension(ldb, nrhs) b, integer ldb, real, dimension(n) work, integer
info)
SLAHILB
π Purpose
okay so SLAHILB 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. β¨
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. π
In single, the generated solution is exact for N <= 6 and has small componentwise error for 7 <= N <= 11. π«Ά
πΈ Parameters
NβNisINTEGER; the dimension of the matrixA.NRHSβNRHSisINTEGER; the requested number of right-hand sides.AβAisREALarray, dimension(LDA, N); the generated scaled Hilbert matrix.LDAβLDAisINTEGER; the leading dimension of the arrayA.LDA >= N.XβXisREALarray, 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.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 (the source really says it like that π);< 0: ifINFO = -i, thei-th argument had an illegal value.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file slahilb.f.
π«Ά Author
Generated automatically by Doxygen for LAPACK from the source code.
mwah π β this page is stamped LAPACK Version 3.12.0, and the footer vibe is TESTING/MATGEN/slahilb.f(3).
π¦ 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