123 SUBROUTINE dlahilb( N, NRHS, A, LDA, X, LDX, B, LDB, WORK, INFO)
130 INTEGER N, NRHS, LDA, LDX, LDB, INFO
132 DOUBLE PRECISION A(LDA, N), X(LDX, NRHS), B(LDB, NRHS), WORK(N)
146 INTEGER NMAX_EXACT, NMAX_APPROX
147 parameter(nmax_exact = 6, nmax_approx = 11)
159 IF (n .LT. 0 .OR. n .GT. nmax_approx)
THEN
161 ELSE IF (nrhs .LT. 0)
THEN
163 ELSE IF (lda .LT. n)
THEN
165 ELSE IF (ldx .LT. n)
THEN
167 ELSE IF (ldb .LT. n)
THEN
170 IF (info .LT. 0)
THEN
171 CALL xerbla(
'DLAHILB', -info)
174 IF (n .GT. nmax_exact)
THEN
196 a(i, j) = dble(m) / (i + j - 1)
202 CALL dlaset(
'Full', n, nrhs, 0.0d+0, dble(m), b, ldb)
209 work(j) = ( ( (work(j-1)/(j-1)) * (j-1 - n) ) /(j-1) )
215 x(i, j) = (work(i)*work(j)) / (i + j - 1)
subroutine dlahilb(n, nrhs, a, lda, x, ldx, b, ldb, work, info)
DLAHILB
subroutine xerbla(srname, info)
subroutine dlaset(uplo, m, n, alpha, beta, a, lda)
DLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.